in reply to Re^4: Creating CSV file
in thread Creating CSV file
Concise was not the point. Adopting an appropriate data structure was. Note that the meat of my reply however boils down to:
$csv->print (*STDOUT, $_) for @records;
where your 'concise' equivalent was:
for (@ports) { $csv->print (*STDOUT, [ $_, shift @val1, shift @val2 ]); }
which after all is part of why an appropriate data structure is a 'good thing'™ ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Creating CSV file
by Tux (Canon) on Aug 01, 2010 at 13:05 UTC |