Octavian Rasnita wrote:
Hi all,

Does anyone know if it is possible to find out the path in which a perl
program is launched?

For example, I am in /var/www and I run the following command:

perl /home/script.pl

And I want it to give me the result:

/var/www

Thank you very much.



Check out FindBin should be standard on newer Perls.


perldoc FindBin

I think this will provide what you want...

http://danconia.org


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to