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 ... }
In reply to Re: While loop conditions in Perl
by aitap
in thread While loop conditions in Perl
by joemaniaci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |