There's more than one way to do things | |
PerlMonks |
Re^3: Associative arrayby moritz (Cardinal) |
on Jul 13, 2009 at 06:25 UTC ( [id://779472]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|