Welcome to the Monastery | |
PerlMonks |
RE: Merging filesby chromatic (Archbishop) |
on Aug 27, 2000 at 08:34 UTC ( [id://29857]=note: print w/replies, xml ) | Need Help?? |
That's pretty compact as is. Here's one possibility, though (untested):
The while loop does the equivalent of your defined check. Update: merlyn points out that && is too high on the precedence scale to work. Use and instead. Also, this code is likely to fail if you hit a line of '0', as the loop actually does a truth-test. Thanks!
In Section
Seekers of Perl Wisdom
|
|