M
Mani
hi,
i want to write a code to split a line containing names followed
cities,emailids,
and store them separately,
in perl,
if the input file contains,
name1 city1 email1 email2 email3
name2 city2 email1 email2 email3
then,i think,
($name,$city,$email)= split /\s+/,$line,3;
can store the names,cities and emails in separate strings.
In java how can this be done?
-Mani
i want to write a code to split a line containing names followed
cities,emailids,
and store them separately,
in perl,
if the input file contains,
name1 city1 email1 email2 email3
name2 city2 email1 email2 email3
then,i think,
($name,$city,$email)= split /\s+/,$line,3;
can store the names,cities and emails in separate strings.
In java how can this be done?
-Mani