[tpm] Subroutine arcana

James.Q.L shijialeee at yahoo.com
Mon May 14 19:44:37 PDT 2007


--- arocker at vex.net wrote:

> 
> Does anyone know if it is legitimate to use an anonymous subroutine in a
> named one? 

lexical variable in named nested subroutine won't be shared. however, anon subroutine won't suffer
from that. I would give you a sample code but i remember mod_perl doc have it explained clearly.

http://perl.apache.org/docs/general/perl_reference/perl_reference.html#my____Scoped_Variable_in_Nested_Subroutines

James.


       
____________________________________________________________________________________Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php


More information about the toronto-pm mailing list