in reply to Re^2: How to manipulate @INC in a script?
in thread How to manipulate @INC in a script?

Don't know if this is true just of Win32 (running ActivePerl 5.6.1 (633)) but if you use quotes in the shebang line it doesn't work.

i.e.

#!/usr/bin/perl -I"/somedir/"

..won't work but

#!/usr/bin/perl -I/somedir/

.. will.

The /usr/bin/perl wouldn't be strictly correct on Win32, but under ActivePerl it doesn't seem to matter (could set it to the proper DOS path if required).