pg has asked for the wisdom of the Perl Monks concerning the following question:
Perlfunc says that before function 'caller' can get the frame information for you, some old call frames might have been flushed away already. Does Perl provide me a way to turn the optimizer less aggressive? Is there a switch at the time you start you perl, something like -w, -d? Is there a way that you can add some statements to your script to accomplish this?
Comment on Can I make the optimizer less aggressive?
I don't think that's a function of the optimizer, actually, but that's just a wild guess. If you're not afraid of patching your own Perl, though, you can use the optimizer module. I'm pretty sure it won't get back any flushed call frames. (Of course, I've never actually noticed any missing, when I've had need to check.)