in reply to Re: Continuing While Loop One Iteration After EOF
in thread Continuing While Loop One Iteration After EOF
while (my $line = <INHANDLE>) { ... } continue { ... if eof(INHANDLE); }
is no different than
while (my $line = <INHANDLE>) { ... } ...
(barring reading errors), so it's not very useful. The code will be duplicated, which seems to be what the OP wants to avoid.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Continuing While Loop One Iteration After EOF
by ruoso (Curate) on Dec 21, 2005 at 18:08 UTC | |
by ikegami (Patriarch) on Dec 21, 2005 at 18:13 UTC | |
by davido (Cardinal) on Dec 21, 2005 at 18:25 UTC | |
by ruoso (Curate) on Dec 21, 2005 at 18:19 UTC |