XP is just a number | |
PerlMonks |
Re: Inappropriate I/O control operationby talexb (Chancellor) |
on Sep 26, 2017 at 18:09 UTC ( [id://1200140]=note: print w/replies, xml ) | Need Help?? |
I'm a little puzzled -- what problem are you trying to solve here? If you're just looking to see if the file exists (seeing as you just open and close the file), why not just test for the existence of the file with -e? You could also check for whether the file's empty with -z. I see an opportunity to use join on both your input and output .. Coded but not tested. :) PS Yeah, the $zero value is meaningless if the file doesn't exist. Edit: Fix inadvertent backslash in second paragraph.
In Section
Seekers of Perl Wisdom
|
|