argv has asked for the wisdom of the Perl Monks concerning the following question:
I need to do a split on a line with comma-separated fields, but some fields have commas in them, and are therefore surrounded by quotes. Here's a prototype line:
IBM,INTL BUSINESS MACHINES,"2,500",$108.14,$270350.00,$1625.00,0.60%,$126200.00, +$144150.00,+114.22%
The "2,500" is obviously the number of shares. How do get split to not divide it into separate fields?
|
---|