[Catalyst] get the path to the home
Sergio Salvi
sergio.lists at salvi.ca
Sat Sep 29 01:38:53 GMT 2007
Have you looked at FindBin?
use FindBin;
from the docs:
EXPORTABLE VARIABLES
$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
Sergio
On 9/28/07, Octavian Rasnita <orasnita at gmail.com> wrote:
> Hi,
>
> 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.
>
> Octavian
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>
More information about the Catalyst
mailing list