Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Why does Perl have typeglobs?

by Anonymous Monk
on Jul 08, 2014 at 22:45 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1092809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-18 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found