Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Pretty Print Dumper for Hash of Array

by svenXY (Deacon)
on Sep 20, 2005 at 07:19 UTC ( #493375=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    foreach (keys %{$hoa}) {
        print "\t'$_' => [" . join(',', @{$hoa->{$_}}) . "],\n";
    }
    
  2. or download this
        'c' => [2,0],
        'a' => [1,2],
        'b' => [1,3],
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://493375]
help
Chatterbox?
and the grasshoppers chirp...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2018-07-22 18:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (455 votes). Check out past polls.

    Notices?