So, basically you want Perl to continue (because a die is an initial continuation - after all, a die can be trapped), after Perl has informed its request for more memory has failed. Note that such a failure typically happens halfway processing a Perl command; the interpreter may be in an inconsistent state (as it's currently in C-land, not Perl-land).
How do you suppose perl has to handle this? It'll be extremely limited in what it can do - it must assume it cannot allocate any more memory; which also means dropping back to Perl land is a nono (because almost anything could result in additional memory requests).
I've read about some emergency memory space that can be built into the perl but that seems to be for small items and static in nature.
I do not think the emergency memory space is so Perl will be able to continue its merry way. It isn't like an additional jerry can. It's memory that will be claimed when the process starts (so, it will run out of memory sooner). But as far as I know (can't say I know from experience), it's memory that can be used so Perl can
die instead of
exit. And then you may be able to trap that die.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.