in reply to Re: Determining if self is already running under WinNT/2000
in thread Determining if self is already running under WinNT/2000
Under ActivePerl on Windows, the $0 variable contains the name
of the script.
Launching through a a file association makes no difference. ActivePerl puts the script name into the $0 variable instead of the path to the Perl interpreter. The path to the interpreter is in $^X. Under Unix, Perl behaves the same way if you run the interpreter directly: 'perl script.pl'.