in reply to anonymous filehandle for overridden open sub
my $AFILE; if (open ($AFILE, "<", $file)) { # .... }
I got rid of the -e test, because open will fail if the file isn't there anyway.
updated to make use of 3-arg open, since it's safer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: anonymous filehandle for overridden open sub
by tlm (Prior) on Apr 07, 2005 at 18:56 UTC |