Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Creating "Lexical" Symbol Table Aliases (a la "use vars") From The Same Package

by moritz (Cardinal)
on May 09, 2014 at 08:42 UTC ( #1085562=note: print w/replies, xml ) Need Help??


in reply to Creating "Lexical" Symbol Table Aliases (a la "use vars") From The Same Package

The proper way to do lexical aliases it through explicit references.

Sadly that means you need an explicit dereferencing step when using the local alias/reference.

On the upside, explicit dereferencing makes it clear that "action at a distance' (changes in local data are propagated to the original data location, and vice versa) is happening. so it might not be a bad thing.

Finally, Lexical::Alias exists (haven't used it yet).

  • Comment on Re: Creating "Lexical" Symbol Table Aliases (a la "use vars") From The Same Package

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085562]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2016-12-11 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (168 votes). Check out past polls.