in reply to Re^3: Continuing While Loop One Iteration After EOF
in thread Continuing While Loop One Iteration After EOF
while (<INHANDLE>) { dfkahsfkasdkfjhasdklfa; dsfjasd jf; lsdfj asdljf; } continue { if (eof(INHANDLE)) { dfkahsfkasdkfjhasdklfa; dsfjasd jf; lsdfj asdljf; } }
vs
while (<INHANDLE>) { dfkahsfkasdkfjhasdklfa; dsfjasd jf; lsdfj asdljf; } dfkahsfkasdkfjhasdklfa; dsfjasd jf; lsdfj asdljf;
But that's completely misses what I meant to point out. It sounds like the OP wanted to avoid code duplication (or else, he'd would simply have used the second snippet), but your code doesn't do that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Continuing While Loop One Iteration After EOF
by davido (Cardinal) on Dec 21, 2005 at 18:25 UTC | |
|
Re^5: Continuing While Loop One Iteration After EOF
by ruoso (Curate) on Dec 21, 2005 at 18:19 UTC |