Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Format a Dumper module output file.

by choroba (Canon)
on Oct 03, 2012 at 12:32 UTC ( #997047=note: print w/ replies, xml ) Need Help??


in reply to Format a Dumper module output file.

The comments should explain what's going on:

my %subkeys; # The keys of %subkeys are the subkeys, i.e. GID, AIG, TEA in this cas +e. undef @subkeys{map keys %{ $VAR1->{$_} },keys %$VAR1}; # For each subkey, go through the hash and pick up the corresponding v +alue. for my $subkey (sort keys %subkeys) { print +($subkey, join "\t", q(), map $VAR1->{$_}{$subkey}, sort { $a <=> $b } keys %$VAR1), "\n"; }
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: Format a Dumper module output file.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2015-07-28 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls