in reply to Re: Perl Memory problem ...
in thread Perl Memory problem ...
Most likely, your problem lies somewhere else as here you clean out the variables you create locally.
Take a look at Devel::Cycle and/or Devel::LeakTrace and Devel::FindRef to see where your program is collecting memory. Ideally, you can eliminate all server/client interaction and use a faked client message in a loop to reproduce the problem.
You might want to change the coding style from
our $nick = $clients{$ident}->{nick};
... to
my $nick = $clients{$ident}->{nick};
|
|---|