![]() |
|
more useful options | |
PerlMonks |
Re^2: finding the absolute path to a module, from the module's, perspectiveby skazat (Chaplain) |
on Sep 12, 2004 at 04:36 UTC ( #390368=note: print w/replies, xml ) | Need Help?? |
Quote: BTW - an absolute path has no "perspective", its an absolute path. What I meant by that statement is that I don't want the absolute path of the script that's calling the module, I want the absolute path of the module the script is calling - that's the difference in perspective. Quote: Try it again, because that works. If it doesn't work for you, upgrade File::Spec. Well, here's proof of what you're saying, I give you FOO.pm: And here's a test cgi script:
Prints: /home/user/www/cgi-bin/test.pl But (of course, sigh), my not as tiny program is still giving me the not-so-absolute path. It's almost as if it thinks the absolute path *starts* at the lib directory. Hmm. I'll come post back if I can figure something else out, must be some weird gremlin hunting about.
-justin simoni
In Section
Seekers of Perl Wisdom
|
|