Keep It Simple, Stupid | |
PerlMonks |
Re^2: reading the file using the line numberby davorg (Chancellor) |
on Nov 29, 2006 at 10:20 UTC ( [id://586650]=note: print w/replies, xml ) | Need Help?? |
perl -ne 'print if $. = $number; exit if $. > $number;' You probably want '==', not '=', there.
-- <http://dave.org.uk> "The first rule of Perl club is you do not talk about
Perl club."
In Section
Seekers of Perl Wisdom
|
|