in reply to Re^2: Different behavior when parsing $0 on Solaris and Win32
in thread Different behavior when parsing $0 on Solaris and Win32

yes, this is exactly what happens, even setting PATH with the current dir and invoking with:

$ my_script_name.pl

The value of $0 is still the same:

./my_script_name.pl