i.e. a comma separated list for an address book:
"Cerone,Kirsle,name@domain.com,555 nowhere rd,555-555-5555,some comments that include, commas, inside of them"
Code:
my ($first,$last,$email,$address,$phone,$comments) = split(/\,/, $data, 6);
Since it only wanted 6 variable, $comments will still have commas in them. If the 6 was omitted, $comments would only have "some comments that include" and then to get the other info you'd have to go more variables in (some people handle this by putting an array as the last item).
yeah but how would I handle splitting in a sense of turning an IM with Hello World into two variables. $hello having Hello in it, and $world having world in it. I think you would use splitting for that