Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Format a Dumper module output file.

by Arunbear (Parson)
on Oct 03, 2012 at 13:12 UTC ( #997052=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 my $word (sort keys %words) {
        printf "%s %s\n", $word, join(' ', @{ $words{$word} });
    }
    
  2. or download this
    % perl fmt.pl output.dump
    AIG 154 160 161 135
    GID 18 27 18 17
    TEA 235 224 224 214
    
  3. or download this
    $VAR1 = {
    '3' => {
    ...
    'TEA' => 235,
    }
    };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2014-12-18 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (47 votes), past polls