BBQ has asked for the wisdom of the Perl Monks concerning the following question:
foreach $line (<FILE>) { print $line; }
while ($line = <FILE>) { print $line; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: while or foreach?
by Anonymous Monk on Dec 24, 1999 at 00:57 UTC | |
|
Speed and Readability
by chromatic (Archbishop) on Dec 24, 1999 at 11:40 UTC | |
by Anonymous Monk on Dec 31, 1999 at 02:20 UTC | |
by BBQ (Curate) on Dec 24, 1999 at 16:51 UTC |