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

Re^3: Why does Perl have typeglobs?

by Anonymous Monk
on Jul 08, 2014 at 22:45 UTC ( #1092809=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why does Perl have typeglobs?
in thread Why does Perl have typeglobs?

You can e.g. assign a typeglob to another:

$foo = 42; @foo = ( 1, 2, 3 ); *bar = *foo; print "$bar @bar"; undef *bar; print "$bar @bar";
Where and why that might come useful I cannot tell; however, it does make sense to keep a single struct, does it not?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2019-08-20 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?