|We don't bite newbies here... much|
relative paths in catalystby holli (Monsignor)
|on Mar 28, 2006 at 14:58 UTC||Need Help??|
holli has asked for the
wisdom of the Perl Monks concerning the following question:
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?
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/