Thank you, but this is not doing what I want. I would like to find the current directory from where I run the script, not the path of that script.
I can do it by running the pwd command line probably, but I need to run this under Windows. Thanks. ----- Original Message ----- From: "Wiggins d'Anconia" <[EMAIL PROTECTED]> To: "Octavian Rasnita" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, October 26, 2003 7:12 PM Subject: Re: Finding the current path > 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 > > ------------------------------------------------------- Xnet scaneaza automat toate mesajele impotriva virusilor folosind RAV AntiVirus. Xnet automatically scans all messages for viruses using RAV AntiVirus. Nota: RAV AntiVirus poate sa nu detecteze toti virusii noi sau toate variantele lor. Va rugam sa luati in considerare ca exista un risc de fiecare data cand deschideti fisiere atasate si ca MobiFon nu este responsabila pentru nici un prejudiciu cauzat de virusi. Disclaimer: RAV AntiVirus may not be able to detect all new viruses and variants. Please be aware that there is a risk involved whenever opening e-mail attachments to your computer and that MobiFon is not responsible for any damages caused by viruses. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]