Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Tell me how it works!

by citromatik (Curate)
on Jan 28, 2009 at 15:31 UTC ( #739611=note: print w/ replies, xml ) Need Help??


in reply to Tell me how it works!

Because undef *a undefines the typeglob *a, but not the underlying slots. Look at these 2 examples:

#1 $a = 10; *b = *a; $a = 4; print $b; # <- prints 4 #2 $a = 10; *b = *a; undef *a; $a = 4; print $b; # <- prints 10!

citromatik


Comment on Re: Tell me how it works!
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2014-07-14 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (255 votes), past polls