Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: reading the file using the line numberby Fengor (Pilgrim) |
on Nov 29, 2006 at 09:18 UTC ( [id://586645]=note: print w/replies, xml ) | Need Help?? |
inspired by tom christiansens oneliners: perl -ne 'print if $. == $number; exit if $. > $number;' Edit: corrected typo, thx to davorg --
In Section
Seekers of Perl Wisdom
|
|