in reply to Cool way to parse Space Separated Value and CSV files
Hashes are dictionaries ... $age{Peter} is pronounced age-of-Peter
$price{hammer} price-of-hammer
$definition{dictionary} definition-of-dictionary ... more on this type of thing in Re^3: highest value in hash (virtual teddybear)
Speaking of csv and dictionary-of-@fields :) you could even use the technique with fixed with records :)
Examples at
| examples/csv2xls | Script to onvert CSV files to M$Excel |
| examples/csv-check | Script to check a CSV file/stream |
| examples/csvdiff | Script to shoff diff between sorted CSV files |
| examples/parser-xs.pl | Parse CSV stream, be forgiving on bad lines |
merging csv files into a third file preserving column & row
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Cool way to parse Space Separated Value and CSV files
by greengaroo (Hermit) on Apr 10, 2013 at 13:12 UTC |