Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: mem usage

by ikegami (Pope)
on May 26, 2010 at 19:00 UTC ( #841786=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MDevel::Peek -e'
       my @a = qw( a b c ); Dump(\@a,1);
    ...
        MAX = -1               <---- 0 slots
        ARYLEN = 0x0
        FLAGS = (REAL)
    
  2. or download this
    my @lines;
    $#lines = 12_000_000;
    $lines[$.-1] = $_ while <>;
    $#lines = $.-1;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2014-09-18 01:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (104 votes), past polls