Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: easiest way to print the content of a hash?

by saberworks (Curate)
on Jul 13, 2006 at 15:59 UTC ( [id://560992]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    my %hash = (
        key1 => 'value1',
    ...
    print Dumper(%hash);  # okay, but not great
    print "or\n";
    print Dumper(\%hash); # much better
    
  2. or download this
    $VAR1 = 'key2';
    $VAR2 = 'value2';
    ...
              'key2' => 'value2',
              'key1' => 'value1'
            };
    

Log In?
Username:
Password:

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

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

    No recent polls found