Welcome to the Monastery | |
PerlMonks |
Re^2: Keep only X number of entries of a file using a delimeterby SimonPratt (Friar) |
on Oct 15, 2015 at 15:48 UTC ( [id://1144978]=note: print w/replies, xml ) | Need Help?? |
You could also test $., like so: last if $. > 3;
In Section
Seekers of Perl Wisdom
|
|