laziness, impatience, and hubris | |
PerlMonks |
Re: sub and anonymous subby Courage (Parson) |
on Jun 20, 2002 at 20:43 UTC ( [id://176150]=note: print w/replies, xml ) | Need Help?? |
1. As your program proved, "$depth" variable does not
goes away at "#5" because it is used in sub "recurse" (hence REFCNT($depth)++ few times). And it was allocated during compile stage, to perform some optimizations here
2. I'll suggest you to read "perlsub" and not "perlguts", and may be after that reading "perlcall" also will help getting you deeper into your question. Courage, the Cowardly Dog.
In Section
Seekers of Perl Wisdom
|
|