|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Re[4]: How's your Perl?by BrowserUk (Patriarch) |
| on Oct 28, 2003 at 07:45 UTC ( [id://302674]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
I will finally admit :) that whilst I think I know the When and the Where, I haven't a clue as to the Why!
Even wading through pp_goto, I couldn't quite work out why it only happens if the function is called in a list context, or indeed why it takes a reference at all. Gut feel tells me its something to do with the fact that the code tries for the goto SUB; variation prior to the goto -LABEL and goto -EXPR variations, and that something is being stacked and not cleaned up, but that's about as far as I got before my brain went into overload. One good thing came out of it. I now have a much better appreciation of why goto \&func is so gaddamn slow. All that chundering around unwinding stack frames, validating the target isn't a prohibited one etc. I never imagined. I'd always invisioned a simple longjump(). Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham"Think for yourself!" - Abigail Hooray!
In Section
Meditations
|
|
||||||||||||||||||||||||||||