in reply to Memory monitoring

I would try Devel::Size for (2). I'm not sure what you mean for (1).

Replies are listed 'Best First'.
Re^2: Memory monitoring
by FFRANK (Beadle) on Jul 03, 2007 at 17:24 UTC
    In (1), I meant: to initialize everything at the beginning, some "everything" =(); initializer.
      No, there's no such way.
      while (...) { # these all initialized with undefined value my($you, $have, $to, $declare, $your, $variables, $one_by_one, $just +_like_this); }
      But, it's still not clear about what do you want to achieve by that. You can also use hash, and intialize all elements with empty or zero values.
      my %hash = map { $_ => '' } qw(list of elements you want to initialize);

      Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!