http://qs321.pair.com?node_id=242545


in reply to Re: Find the full path of the script at run time
in thread Find the full path of the script at run time

Thanks. I think this is what I will be going for.

I also found This thread, and was considering FindBin, but apparently FindBin is broken.

I'd still be interested in other options. If my script is invoked as ..\..\script.pl, won't that set $0 to ..\..\script.pl ?

Cheers,
ibanix

$ echo '$0 & $0 &' > foo; chmod a+x foo; foo;