in reply to Export from module in subdirectory
Great thread! Just like to get some clarity on a couple of things.
If the use lib::test is not defined in test.pm and is therefore not found, how is the programme finding and executing test::min()? As SuicideJunkie has stated, this way works, therefore are the directory and subdirs in which the op is operating not already imported to the @INC?
Given, the assumption the op is already within an @INC'd directory, at what point, in the package declaration of lib::test do you 'cut-off' the system path, such that you are not declaring the::whole::path::to::lib::test?
The answers here have shed a lot of light on using modules in different directories which is great, as i am currently getting to grips with similar issues in strawberry perl. Particularly tobyinks' description of the way use functions.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Export from module in subdirectory
by tobyink (Canon) on Oct 11, 2012 at 12:56 UTC | |
by Don Coyote (Hermit) on Oct 11, 2012 at 13:24 UTC |