They're doing different things.
The first one takes the TRACE glob from the current package and installs a reference to it into the Module::Dependency::Grapher package. This effectively pushes your TRACE subroutine (and other objects) into the Module::Dependency::Grapher package.
The second one imports the TRACE subroutine from Module::Dependency::Grapher into the current package (assuming that Module::Dependency::Grapher is using Exporter).
So they are the complete opposite of each other.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Importing functions into packages - globs vs use
by davorg
in thread Importing functions into packages - globs vs use
by throop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |