: [1] Hmm... the 0 byte version doesn't really "leak memory".  However,
: Perl DOESN'T leak memory on any of these solutions - it just fails to
: find you more to satisify your greed.  On systems with near infinite
: memory these will work, not fail.

Yeah, I was thinking in solutions of this kind

    # untested
    $ perl -e 'eval q[my $foo = 0; sub {$foo}; die}] while 1'

Maybe "memory leak" has a broader sense than what I thought.  In fact,
I believe I couldn't define what I mean precisely, to differentiate the
memory leak of the code above (in case it leaks), and plain, explicit
loops as in "push @foo, 0 while 1".

-- fxn


Reply via email to