in reply to File Reading
Any ideas how to tackle this problem is welcomeCreate a hash of arrays, where the hash keys are the elements one the first line, and the array elements are values from each column respectively. Read perldata, perlfaq4.
Update: The implementation is intentionally excluded since this is an obvious homework question. Memory concerns are considered out of scope. In real life I would probably use cut (Unix).$ perl -w 641872.pl $VAR1 = { 'EYES' => [ 'BLUE', 'BROWN' ], 'AGE' => [ '32', '54' ], 'HAIR' => [ 'BLONDE', 'BROWN' ] };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File Reading
by svenXY (Deacon) on Oct 01, 2007 at 13:34 UTC |