Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 cookies bake in the oven...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2017-03-23 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (294 votes). Check out past polls.