Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Memory issue with Hash

by nowise (Initiate)
on Dec 04, 2012 at 06:15 UTC ( [id://1007003]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     #!/usr/bin/perl5.8
    use Proc::ProcessTable;
    #use Tie::File::AsHash;
    
  2. or download this
     my %hash= ();
    
    %TV = (  flintstones =>{ series   => "flintstones",
    ...
                                           { name => "elroy",   role => "k
    +id",  age  =>  9, },
                                         ]
                           },
    
  3. or download this
     sub memory_use {
        my $t = new Proc::ProcessTable;
        foreach my $got ( @{$t->table} ) {
    ...
            return $got->size;
        }
    }
    
  4. or download this
      my $count = 10;
      my $key = 'test';
    
    ...
              %hash = (); # if we comment it memory constant
          }
      } #----for 1----#
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found