in reply to Re^2: What's the right way to import a module
in thread What's the right way to import a module
No. If there is no Foo.pm, and you don't use any functionality of Foo.pm then use Foo; will not work and is not considered best practice.
There is no general hierarchical relationship between Foo and Foo::Bar and Foo::Car. Maybe if you wrote the modules, there is some relationship between Foo::Bar and Foo::Car, but in general, this is not true.
|
|---|