Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: alias of a variable

by rir (Vicar)
on Feb 02, 2009 at 14:52 UTC ( #740715=note: print w/ replies, xml ) Need Help??


in reply to alias of a variable

*main::foo = \$/; print ">$main::foo<";
Some perl special variables may have magical qualities that interfere with using aliases, I don't know. perldoc perldata and see the section on Typeglobs and Filehandles.

Be well,
rir


Comment on Re: alias of a variable
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://740715]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2015-07-30 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls