You need the scalar there, because you only want to get one line at a time.# while (not eof FILE) { ... } # or... until (eof FILE) { my (@lines) = map scalar <FILE>, 1 .. 3; # work with $lines[0], $lines[1], $lines[2] }
In reply to Re: Need a better way to count input lines
by japhy
in thread Need a better way to count input lines
by Theo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |