in reply to peeling the top 10 lines from a file
Update:use strict; my $counter=0; print"TOP\n"; while( $counter++<10) { last if eof(STDIN); $_=<>; print "$counter $_"; } print "BOTTOM";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: peeling the top 10 lines from a file
by davido (Cardinal) on May 16, 2005 at 15:50 UTC | |
|
Re^2: peeling the top 10 lines from a file
by reasonablekeith (Deacon) on May 16, 2005 at 15:47 UTC |