in reply to Re: While loop conditions in Perl
in thread While loop conditions in Perl

chop is going to truncate your data if you don't have a \n on the last line.

Are you sure that you'll be getting \n after every line ever?

Replies are listed 'Best First'.
Re^3: While loop conditions in Perl
by aitap (Curate) on Jul 19, 2012 at 16:37 UTC
    Sorry! It was a misprint. chomp will do it better.
    Sorry if my advice was wrong.