Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Importing functions into packages - globs vs use

by themage (Friar)
on Nov 30, 2006 at 16:42 UTC ( #586997=note: print w/ replies, xml ) Need Help??


in reply to Importing functions into packages - globs vs use

hi throop,

The author is doing exactly the oposite to what you are expecting.

What that code do is redefine the sub TRACE in Module::Dependency::Grapher with the one in your local scope. After this code, every call made to TRACE inside Module::Dependency::Grapher will call your local TRACE, not the original one defined in Module::Dependency::Grapher.

Using use Module::Dependency::Grapher qw(TRACE); you import Module::Dependency::Grapher::TRACE to your local scope, that can then be called with TRACE(...).

TheMage
Talking Web


Comment on Re: Importing functions into packages - globs vs use
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-07-04 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls