Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: Idiom: hashes as sets

by Anonymous Monk
on Jul 03, 2008 at 14:57 UTC ( #695373=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    #!/usr/bin/perl -- 
        printf "%10s %10s %10s\n", 'value', 'size', 'total_size'; 
        printf "%10s %10d %10d\n",$_, size($h{$_}),total_size($h{$_}) for 
    +sort keys %h;
  2. or download this
         value       size total_size
      !!!undef     660026    1420026
         sv_no     660026    1400026
        sv_yes     660026    1420026
         undef     660026     900026
  3. or download this
         value       size total_size
      !!!undef     660014    1540014
         sv_no     660014    1540014
        sv_yes     660014    1540014
         undef     660014     980014

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-11-29 22:16 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (753 votes), past polls