Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Using references as hash keys

by traveler (Parson)
on Oct 16, 2005 at 14:36 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-01-28 06:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?