http://www.perlmonks.org?node_id=586650


in reply to Re: reading the file using the line number
in thread reading the file using the line number

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."
-- Chip Salzenberg

  • Comment on Re^2: reading the file using the line number