Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by davido (Cardinal)
on Jul 13, 2006 at 17:39 UTC ( [id://561020]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub print_hash {
        my $href = shift;
        print "$_\t=> $href->{$_}\n" for keys %{$href};
    }
    
  2. or download this
    sub print_hash {
        my $href = shift;
    ...
            print "$key\t=>$val\n";
        }
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found