perlquestion
ibanix
Hello fellow monks!<BR><BR>
How would I find the full path to a script at the time it is invoked? eg, if the script is /home/foo/script.pl, return all of that.<BR><BR>
I need this to work on Win32 also. I'm about to go dive into perlvar and see if I can find a built-in that does this, but I thought I'd ask my wise masters first. :-)<BR><BR>
Cheers,<BR>
ibanix<BR><BR>
<code>$ echo '$0 & $0 &' > foo; chmod a+x foo; foo;</code>