in reply to Re: What's the right way to import a module
in thread What's the right way to import a module
Foo package has only two modules: Bar and Car.
Directory structure
- Foo |-Car.pm |-Bar.pm
I intend to use only Foo::Bar module, but one of my colleague said its "best practice" to include 'use Foo' and then include 'use Foo::Bar'. Is this the right way of importing?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: What's the right way to import a module
by Corion (Patriarch) on Apr 26, 2012 at 08:20 UTC | |
Re^3: What's the right way to import a module
by JavaFan (Canon) on Apr 26, 2012 at 08:34 UTC |
In Section
Seekers of Perl Wisdom