in reply to Re: Perl memory leak?
in thread Perl memory leak?

Hmm... or maybe not... :)
my()ing the @X seems to fix it as well.
perl -e "while (1){my @X=split/:/,'1::'}"
(use strict;)++

--perlplexer

Update:added "my"

Replies are listed 'Best First'.
Re: Re: Re: Perl memory leak?
by particle (Vicar) on Apr 17, 2002 at 19:02 UTC
    my()ing @X outside the while works as well...

    perl -e'my@X;while(){@X=split/:/,"1::"}'
    good catch, perlplexer.

    ~Particle ;Þ