Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: unexpected close() success on (non-) filehandle

by demerphq (Chancellor)
on Nov 21, 2001 at 19:39 UTC ( [id://126779]=note: print w/replies, xml ) Need Help??


in reply to unexpected close() success on (non-) filehandle

Well, not answering your question but the entire framework here seems off kilter. If you want to populate a hash with a bunch of filehandles what about
my @files; #the files my %handles; foreach my $name (@files) { open $handles{$name},$name or die "$name:$!"; } foreach my $fh (values %handles) { print $fh scalar(localtime),"\n"; } foreach my $fh (values %handles) { close $fh; }
Anyway, a quick $.02 while excel loads another 20mb "database" (NOT!) across the network.

Oooh! For the record tilly has pointed out that autovivification is a 5.6 feature and wont work in those prehistoric version that some systems have installed ;-) :-)

Yves / DeMerphq
--
Have you registered your Name Space?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://126779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 00:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found