Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Wrong dereference => Out of memory

by fullermd (Priest)
on Oct 29, 2012 at 14:53 UTC ( #1001371=note: print w/replies, xml ) Need Help??


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 (Abbot) 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'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001371]
help
Chatterbox?
[Corion]: A good morning!
[Discipulus]: good morning Corion!
[Corion]: I spent parts of yesterday digging into Filter::Simple to make it not change the line numbers of unfiltered code, but I think I need regex help (which will come in a SoPW I guess). I tried @lines = /((?:"...."|[^" \n]+)\n)/gs, but that matched on...
[Corion]: ... foo "\0\0\0\n" bar\n by matching the first \n instead of matching the four-bytes-in- double-quotes part
[Corion]: ... and I still don't understand why ;)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-01-23 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (191 votes). Check out past polls.