in reply to next in while loop not honored
# ... my $useless_line = <$info>; # reads the first line and throws it away while( my $line = <$info>) { print $line; last if $. >= $maxline; print "$. \n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: next in while loop not honored
by GrandFather (Saint) on Nov 05, 2014 at 20:27 UTC | |
by Laurent_R (Canon) on Nov 05, 2014 at 22:21 UTC |