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

Re: What are typeglobs (useful for)?

by borisz (Canon)
on Jun 26, 2005 at 00:15 UTC ( #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
Node Status?
node history
Node Type: note [id://469973]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2019-09-15 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (178 votes). Check out past polls.

    Notices?