[LA.pm] Alias to a dynamically scoped variable?

William Reardon wdr1 at pobox.com
Sat Aug 27 19:17:05 PDT 2005


At 5:15 PM -0700 8/27/05, Brian Cooke wrote:
>The "my" variables are lexically scoped, rather than dynamically scoped
>(i.e., package variables localized at runtime using "local").  You are
>correct: The *foo = *bar is manipulating the symbol table, and lexicals
>don't live there.  An interesting module that will alias lexical variables
>is Lexical::Alias.  If you say:

Awesome!  I seem to have flipped dynamic & lexical in my head. 
Thanks for the correction & the pointer!

-Bill


More information about the Losangeles-pm mailing list