in reply to While loop conditions in Perl
EDIT: chomp instead of chopwhile (defined my $line = <IN>) { # read all data in one while(){} chomp $line; # remove \n from the end of the line next if $line eq ''; # skip empty lines ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: While loop conditions in Perl
by Anonymous Monk on Jul 19, 2012 at 14:38 UTC | |
by aitap (Curate) on Jul 19, 2012 at 16:37 UTC |