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

Re: Printing the keys/values of a blessed hash?

by Kanji (Parson)
on Aug 13, 2003 at 23:00 UTC ( [id://283713]=note: print w/replies, xml ) Need Help??


in reply to Printing the keys/values of a blessed hash?

You can do a for ( my($k,$v) = each %$obj ) { ... } to give you a basic idea of what's inside the hash, but I personally use Data::Dumper in these types of situations as it will automatically recurse multi-dimensional arrays, hashes, etc.

use Data::Dumper; print Data::Dumper->Dump([ $obj ],[qw( obj )]);

    --k.


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found