I have a line:
$string = \'Paul,12,\"soccer,baseball,hockey\",white\';
I am try to split this into @array that has 4 values so
<
$string = "Paul,12,\"soccer,baseball,hockey\",white";
1 while($string =~ s#"(.?),(.?)"#\"$1aaa$2\"#g);
@array = map {$_ =~ s/aaa/ /g; $_ =~ s/\"//g; $_} split(/,/, $string);
$" = "\n";
print "$array[2]";