Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re (tilly) 5: NEWBIE Brain Teaser

by tilly (Archbishop)
on Apr 16, 2001 at 19:53 UTC ( #72849=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: NEWBIE Brain Teaser
in thread NEWBIE Brain Teaser

That aliasing command relies on typeglobs to work.

Therefore it will only work with global variables. (ie you must localize with local, not my.) I stay away from that except when it really doesn't make sense not to. :-)

The mostly widely used form of that kind of aliasing in modern Perl is for exporting symbols using Exporter.

FWIW one goal for Perl 6 is to kill typeglobs entirely. The functionality should be available, but by a different mechanism...


Comment on Re (tilly) 5: NEWBIE Brain Teaser

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-09-17 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (73 votes), past polls