|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: valid filehandleby jsprat (Curate) |
| on Mar 20, 2003 at 23:47 UTC ( #244766=note: print w/ replies, xml ) | Need Help?? |
|
Update: You do realize 1: this code opens the file for read, not write and 2: If the file open is successful the else clause will be executed? Sure - the filetests (-f in this case) work on filehandles as well as filenames.
See perldoc perlfunc(search for -X) for more info on all the filetest operators.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||