throop has asked for the wisdom of the Perl Monks concerning the following question:
I'm puzzled by the use of globs here. Examining the code shows that only &TRACE is used, not %TRACE, $TRACE or @TRACE. I would have expected to seeuse strict; use Module::Dependency::Grapher; *Module::Dependency::Grapher::TRACE = \*TRACE;
Is there something fancy the author is doing with globs here? Is there some practical difference?use strict; use Module::Dependency::Grapher qw(&TRACE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Importing functions into packages - globs vs use
by davorg (Chancellor) on Nov 30, 2006 at 16:42 UTC | |
by throop (Chaplain) on Nov 30, 2006 at 16:53 UTC | |
by ikegami (Patriarch) on Nov 30, 2006 at 16:55 UTC | |
|
Re: Importing functions into packages - globs vs use
by themage (Friar) on Nov 30, 2006 at 16:42 UTC | |
|
Re: Importing functions into packages - globs vs use
by brian_d_foy (Abbot) on Dec 01, 2006 at 09:34 UTC |