Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: What are typeglobs (useful for)?

by borisz (Canon)
on Jun 26, 2005 at 00:15 UTC ( [id://469973]=note: print w/replies, xml ) Need Help??


in reply to What are typeglobs (useful for)?

I use them as shortcut/alias from time to time:
*xyz = \&X::YY::ZZ::function;
or as a alias for a scalar's:
my $string = 'Hi There'; local *_ = \$string; s/\s+/ /g; print $string; __OUTPUT__ Hi There
Boris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found