note
ibanix
Thanks. I think this is what I will be going for.<BR><BR>
I also found [id://40553|This thread], and was considering FindBin, but apparently [id://41213|FindBin is broken].<BR><BR>
I'd still be interested in other options. If my script is invoked as ..\..\script.pl, won't that set $0 to ..\..\script.pl ?<BR><BR>
Cheers,<BR>
ibanix<BR><BR>
<code>$ echo '$0 & $0 &' > foo; chmod a+x foo; foo;</code>
242532
242542