in reply to Finding out name and path of script file

Erm, no.

Darwin lemur.phydeaux.org 7.3.0 Darwin Kernel Version 7.3.0: Fri Mar +5 14:22:55 PST 2004; root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC Power M +acintosh powerpc lemur:~ 604> ( cd /tmp ; perl -MCwd -le 'print getcwd' ) /private/tmp

Perhaps if you included more details about how you're running it (and see the FindBin module).

Replies are listed 'Best First'.
Re^2: Finding out name and path of script file (!FindBin)
by tye (Sage) on May 27, 2004 at 00:11 UTC
Re: Re: Finding out name and path of script file
by crenz (Priest) on May 27, 2004 at 00:01 UTC

    Thanks for your fast reply, Fletch. I knew there must be something, but couldn't find anywhere. FindBin does what I mean. Perfect, thanks!

    As for changing the path, I should have included more context, sorry. I was talking of running GUI applications in Mac OS X ".app" format (and using a perl script as the executable), and not of standalone scripts, of course.