Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Tell me how it works!

by citromatik (Curate)
on Jan 28, 2009 at 15:31 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (1)
As of 2024-04-25 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found