laziness, impatience, and hubris | |
PerlMonks |
relative paths in catalystby holli (Abbot) |
on Mar 28, 2006 at 14:58 UTC ( [id://539712]=perlquestion: print w/replies, xml ) | Need Help?? |
holli has asked for the wisdom of the Perl Monks concerning the following question:
Brethren, I am writing a Catalyst application, that needs to access several files. Currently I'm doing this by using absolute paths. Now I would like to use path names that are relative to the directory where the applications main module (myApp.pm) is. How can I find this directory? Update: When I run the app under mod_perl, cwd returns "\xampp\apache", $Findbin::Bin returns "\xampp\apache\bin" and $0 returns "\xampp\apache\bin\apache.exe", holli, /regexed monk/
Back to
Seekers of Perl Wisdom
|
|