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;
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;
In Section
Seekers of Perl Wisdom