Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by demerphq (Chancellor)
on Nov 21, 2001 at 19:39 UTC ( #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? | Other CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2023-06-03 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (6 votes). Check out past polls.

    Notices?