Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Scope of Hash of arrays.

by tcf22 (Priest)
on Sep 18, 2003 at 19:36 UTC ( [id://292498]=note: print w/replies, xml ) Need Help??


in reply to Scope of Hash of arrays.

Can you post some of the surrounding code.
I can't reproduce the error except for doing this, and doubt this is what you are doing
my %hash; $hash{test} = {}; push @{$hash{test}}, 1, 2; use Data::Dumper; print Dumper \%hash;
I've tried various things like
my %hash; #Tried these things #$hash{test} = 'test'; #$hash{test} = 1; push @{$hash{test}}, 1, 2; use Data::Dumper; print Dumper \%hash;
They all didn't have the desired result(some didn't push), but they didn't throw that error. This is on Win32 Perl 5.6.

- Tom

Log In?
Username:
Password:

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

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

    No recent polls found