[Catalyst] get the path to the home
sergio.lists at salvi.ca
Sat Sep 29 01:38:53 GMT 2007
Have you looked at FindBin?
from the docs:
$Bin - path to bin directory from where script was invoked
$Script - basename of script from which perl was invoked
$RealBin - $Bin with all links resolved
$RealScript - $Script with all links resolved
On 9/28/07, Octavian Rasnita <orasnita at gmail.com> wrote:
> I have a I18N module in my Catalyst application and I want to get the path
> to the home directory of the application. Is it possible to get it without
> hard codding it in that module?
> The module is:
> package MyApp::I18N::ro;
> Thank you.
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://email@example.com/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst