Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 contemplating the Monastery: (4)
As of 2014-12-22 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls