[sf-perl] Can't use an undefined value as filehandle reference

David Fetter david at fetter.org
Wed Jul 6 13:56:09 PDT 2005


On Wed, Jul 06, 2005 at 01:22:34PM -0700, greg lee coleman [1482] wrote:
> 
> # this has worked for me in the past:
> 
> my %fh = ();
> if (-f $file  and ! $fh{$file} ) {
>     open($fh{$file}, "<$file") || DisplayError();
>    # coolness ensues...
> }

Does Perl 5.005.paleolithic have 3-argument open()?

Cheers,
D
-- 
David Fetter david at fetter.org http://fetter.org/
phone: +1 510 893 6100   mobile: +1 415 235 3778

Remember to vote!


More information about the SanFrancisco-pm mailing list