Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2014-07-28 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (193 votes), past polls