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

Re: Hash pointing to multiple items

by inq123 (Sexton)
on Mar 23, 2005 at 20:04 UTC ( [id://441868]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash = ( artistsong1 => { 1 => 1, 3 => 1, 5 => 1 },
                 artistsong2 => { 2 => 1, 4 => 1 } );
    ...
    {
      print "yes, 1 does exist for artistsong1!\n";
    }
    
  2. or download this
    my %hash = 
    ( 1 => artistsong1,
    ...
    );
    # to find where 1 is?
    my $artistsong = $hash{1};
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-24 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found