Hi,
I am using a perl script called formmail.pl on a windows 2003 server. Its basically the windows version of Matts Script.
My question is this. The first line of the script is as follows
#!/usr/bin/perl -wT (this is for use on a UNIX server and is the path to perl which needs to be change for each particular server it is running on)
I have installed ActivePerl on my win2003 server in the following location
c:/perl/bin
So I updated the first line of the script to
c:/perl/bin -wT
Does anyone know if that is the correct path for my perl? It does not appear to be so as when I run the script manually I get the following message:
Bareword found where operator expected at FormMail.cgi line 1, near "/perl/bin"
(Missing operator before bin?)
syntax error at FormMail.cgi line 1, near "/perl/bin "
"use" not allowed in expression at FormMail.cgi line 6, at end of line
BEGIN not safe after errors--compilation aborted at FormMail.cgi line 7.
Any help or advice would be greatly appreciated.
David