more useful options | |
PerlMonks |
Re^2: Continuing While Loop One Iteration After EOFby Eimi Metamorphoumai (Deacon) |
on Dec 22, 2005 at 16:57 UTC ( [id://518585]=note: print w/replies, xml ) | Need Help?? |
That will loop through the file, but then it will continue to loop forever with 'AFTERFILE' in $_. So if you're going to do that, you'd have to do it as
and of course, if the file actually contains AFTERFILE, you're in trouble. So if you don't mind undef as your special after loop value, it's probably easiest to do something like
In Section
Seekers of Perl Wisdom
|
|