Help - Search - Members - Calendar
Full Version: Path to Perl for FormMail
The Planet Forums > Control Panels > Other
sprukeaus
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
Stefaans
As far as I know, the first line pointing to Perl is ignored when used on a Windows box. Your script should work with or without that line in place.

I have not tried FormMail on Windows, but we do have AWStats running (also Perl). In our awstats.pl, the Linux type "#!/usr/bin/perl" line is still in place and the script runs without any issue.

Hope this helps alittle bit icon_wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.