There is a CPAN module Text::CSV_XS that you can use. But your data must be
valid CSV ... ie if there is a comma in the string itself , the entire string
must be in quotes like so
John Doe,"1, John Street",DoeVille .
so in your case the proper way to deal with it is to have the input come in
When one thinks of a text delimited file, usually not always, then the fields
would have double quotes around the fields that would have commas in them. There are
modules from CPAN which then can break out the data for you if you don't want to do it
yourself.
Wags ;)
-Original Me
You can delimit a file however you like. If you need to then import the file
into another program, you should make sure you are delimiting with a
character that it recognises.
e.g
one,two,three - comma delimited
one two three - tab delimited
one|two|three - pipe delimited
Look up the sp