Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
There's more than one way to do things
 
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


Comment on Re: What are typeglobs (useful for)?
Select or Download Code

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 having an uproarious good time at the Monastery: (11)
As of 2014-04-23 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (556 votes), past polls