Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: create hash names dynamically

by cdarke (Prior)
on Jun 11, 2007 at 08:26 UTC ( [id://620439]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @a = (1, 2, 3, 4);
    my @hashes;
    ...
    for my $num (@a) {
       push @hashes,{}
    }
    
  2. or download this
    $hashes[1]{key} = 'some value';
    print "$hashes[1]{key}\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found