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 <[EMAIL PROTECTED]> 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: [email protected]
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/