I read a data from data and i need to split the line. Let's said i got this for
$line = "name|male|23";
@data = split('|',$line);
print $line;
print $data[2];
When I print $line the whole line was printed but when pritn $data[2] was executed only the second character was print but not 'male.
Any idea?
$line = "name|male|23";
@data = split('|',$line);
print $line;
print $data[2];
When I print $line the whole line was printed but when pritn $data[2] was executed only the second character was print but not 'male.
Any idea?