http://qs321.pair.com?node_id=1001371


in reply to Wrong dereference => Out of memory

I would guess it doesn't really run out of memory, so much as trigger some error whose generic error message is "out of memory" (ENOMEM or the like), so you get the generic message which isn't quite appropriate to your case.

Replies are listed 'Best First'.
Re^2: Wrong dereference => Out of memory
by schetchik (Beadle) on Oct 29, 2012 at 15:08 UTC
    I'm sorry, but it is not :)

    I see great increase of memory usage, when this script is working.

      Ah, in that case ignore me :)

      The pseudo-hash discussion below is probably right then. I'd forgotten (not accidentally) they ever existed...

Re^2: Wrong dereference => Out of memory
by tobyink (Canon) on Oct 29, 2012 at 15:26 UTC

    It totally does run out of memory! It causes Perl to spin into oblivion!

    I know what causes it. I'll explain below...

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'