Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Splitting a line on just commasby reddydn (Initiate) |
on Jun 14, 2010 at 17:15 UTC ( [id://844668]=note: print w/replies, xml ) | Need Help?? |
@arr = split /(".+?")|,/, $s
print @arr
a
b
"hey,you"
"str1, str2, str3"
end
In Section
Seekers of Perl Wisdom
|
|