Perl Monk, Perl Meditation | |
PerlMonks |
Re: How to verify a file handle?by c (Hermit) |
on Oct 02, 2001 at 20:05 UTC ( [id://116168]=note: print w/replies, xml ) | Need Help?? |
I think that the or die statement will do what you want, however if you would like the script to continue on if the file doesnt exist rather than exiting, you may want to try testing for the file using -e. Check out this, or just try
humbly -c
In Section
Seekers of Perl Wisdom
|
|