As others have already pointed out the "correct" way to deal with CSV files is to use one of the available modules, however this is a FAQ and a way of doing this by hand is discussed there.
/J\
In reply to Re: A better way to split CSV files with quoted strings that may contain commas?
by gellyfish
in thread A better way to split CSV files with quoted strings that may contain commas?
by rkaminski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |