in reply to peeling the top 10 lines from a file
while( <> ){ print; # bail if past 10 lines # or if we hit a blank line last if $. >= 10 || $_ eq "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: peeling the top 10 lines from a file
by holli (Abbot) on May 16, 2005 at 15:39 UTC | |
by radiantmatrix (Parson) on May 16, 2005 at 16:20 UTC | |
|
Re^2: peeling the top 10 lines from a file
by Nkuvu (Priest) on May 16, 2005 at 18:26 UTC | |
by davidrw (Prior) on May 16, 2005 at 19:03 UTC |