Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Using references as hash keys

by traveler (Parson)
on Oct 16, 2005 at 14:36 UTC ( [id://500571]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $aref = [1,2,3];
    my @other = [1,2];
    ...
    push @other, 3;
    print $array->get($aref);   # prints "Ovid"
    print $array->get([1,2,3]); # fails
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-26 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found