i'm running my xampp on windows and would like to know what line i need to put into my code to get it to run.
The line to add to every .cgi or .pl file is often referred to as the
shebang.
For example, in this snippet:
- Code: Select all
#!"C:\xampp\perl\bin\perl.exe"
use CGI;
$form=new CGI;
$f_name=CGI::escapeHTML($form->param("f_name"));
$f_email=CGI::escapeHTML($form->param("f_email"));
$f_text=CGI::escapeHTML($form->param("f_text"));
etc.etc.
It goes at the very top of these files and refers to the absolute path of the Perl interpreter - perl.exe - no spaces above this line.
It looks like this but your path to perl depends on where you installed XAMPP:
#!C:/xampp/perl/perl.exe
If you use the Windows path format and\or you have spaces in a directory name then you need to enclose the path in quotes:
#!"C:\xampp\perl\perl.exe"
From a command console prompt you can issue commands to verify your perl version and what perl switches can be used on the shebang line or from a command prompt:
http://community.apachefriends.org/f/viewtopi ... 7109#87109
===========================================
1. The new
DeskTopXampp Launch Control for
XAMPP / XAMPPlite
Posted by
Ridgewood available from Ridgewood's
DTX web site
2. Build Rich
AJAX Applications - Faster
TIBCO General Interface Pro Edition but
FREE and
Open Source
Fully working with
NO donations required to get a user/password
===========================================