in reply to perl script on Win32

Like DSB said you need to add perl to your path to run it from the command line.

In answer to your final question Activestate perl reads #! C:\Perl\bin\perl -w and gets the -w flag so it will run the program with warnings. It will not use that line to find where perl resides.

Replies are listed 'Best First'.
Re^2: perl script on Win32
by elwarren (Priest) on Aug 06, 2004 at 14:52 UTC
    Windows doesn't care about the shebang, so I use #!/cygdrive/c/perl/bin/perl in my scripts. That way they still use ActiveState when I run them under cygwin. (because DBD::Oracle doesn't work (for me) under cygwin)