|
|
| XP is just a number | |
| PerlMonks |
Re: current path in a package?by samarzone (Pilgrim) |
| on Dec 28, 2010 at 08:06 UTC ( #879396=note: print w/ replies, xml ) | Need Help?? |
|
If you are using require with a physical path to the module file you already know the path. If you are concerned with absolute path rather than relative one you can use getcwd() prepended to the relative path mentioned in the require statement. If you will use the module rather than requireing it you will find absolute path of module file into %INC hash variable with key as the module name.
-- Regards - Samar
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||