>> "Jonathan E. Paton" <[EMAIL PROTECTED]> writes:
> 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.
>
> $a.=1while 1
That's not leaking memory.
leak
<programming> With a qualifier, one of a class of
resource-management bugs that occur when resources are not
freed properly after operations on them are finished, so they
effectively disappear (leak out). This leads to eventual
exhaustion as new allocation requests come in.
Without providing an implementation, I'd say that the "proper" way to
leak memory in Perl is to create circular references inside loops. You
loose your handle (the reference), but Perl won't free up the resources
used by them, that is, there's memory allocated to your program which
can't be used by it.
--
Marcelo