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.
In reply to Re^2: Continuing While Loop One Iteration After EOF
by ikegami
in thread Continuing While Loop One Iteration After EOF
by jcc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |