Which of these is better or faster to use as the shebang line for a Perl script?
#! perl
#! perl.exe
#! fullpath/perl(/perl.exe)
#! partialpath/perl(/perl
As ChristopheD noted, I can confirm from practice (ActivePerl on XP) that the shebang line is not really necessary on Windows.
A shebang line tells a Unix shell which interpreter to pass the script to.
On Windows, the program to pass the script to will be determined by associations based on the extension.
On Unix, the third option (full path to perl executable) is best.
And yes, you can use ".." in theory (shell doesn't care) but you should not really use relative path - you never know what your current working directory when executing a script will be.