You don't need to change anything, Perl is included in Xampp. You simply must write a Perl Script, store it in cgi-bin folder and start in browser via
http://localhost/cgi-bin/script.cgi
The first line of the script MUST be the so called "shebang" line, a comment line which points to the executable module of the Perl interpreter. Something like that:
- Code: Select all
#!c:/programme/xampp/perl/perl.exe
Xampp comes with a "Mini-Perl" installation (i dont know if the above path is correct - you must look for it), but you may install any full Perl Intepreter instead and replace the first line in your scripts, for example:
- Code: Select all
#!c:/perl/bin/perl.exe
"ActivePerl" is most popular and free for Windows. If you are working in a Linux environment, you may use the Linux perl programm instead, what results in this shebang line:
- Code: Select all
#!/usr/bin/perl
Most important is, that you store the scripts in cgi-bin folder. Read the docu about "ScriptAlias"-Directive of Apache and edit httpd.conf, if you want to change the default cgi folder.
Regards
Scory