Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Associative array

by moritz (Cardinal)
on Jul 13, 2009 at 06:25 UTC ( [id://779472]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Associative array
in thread Associative array

This doesn't print the keys and values, but the values associated with the keys key and value.

If you want to print the hash out for debugging purposes, use Data::Dumper.

If you want to access the keys/values in your program, use keys %{$data_pair} or values %{$data_pair} instead.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-29 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found