Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Counting keys in a referenced hash

by mickeyn (Priest)
on Dec 02, 2006 at 20:08 UTC ( [id://587440]=note: print w/replies, xml ) Need Help??


in reply to Counting keys in a referenced hash

$test doesn't refer to a hash ...
it actually gets the last element from the list which is '3'.

apply the following change:

$test = { test1 => '1', test2 => '2', test3 => '3'};
HTH, Mickey

Log In?
Username:
Password:

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

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

    No recent polls found