in reply to Re: reading several lines in a gulp
in thread reading several lines in a gulp
Same problem with moritz's first solution. Needs to handle eof conditions:
@lines = map {eof($file) ? () : scalar <$file>}, 1..10;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: reading several lines in a gulp
by Anonymous Monk on Apr 27, 2011 at 18:45 UTC | |
by wind (Priest) on Apr 27, 2011 at 18:52 UTC |