Each line is individually addressable as-is. Hashes don't buy us any efficiency (in fact, it's quite a bit less efficient).@array = <FILE>; # reads each line of FILE into an $array[$element] print "Line 10 of FILE: $array[9]\n";
In reply to Re: Reading file into a numbered hash
by Fastolfe
in thread Reading file into a numbered hash
by KM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |