To all those using Perl and CGI

Status
Not open for further replies.

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
The thing that is holding you back is that only pure perl runs as a *.cgi on this server.
eg:
Code:
#!usr/bin/perl
 
my $var = 'this is pure perl';
print "$var\n";
#this can be saved as *.cgi
eg:
Code:
#!usr/bin/perl
 
use image::button; # *
 
my $var = 'this is pure perl';
print "$var\n";
# this has to be saved as *.pl

Try making the extension what it was made to be (*.pl).
Permission to 755 and having no undefined globals helps to.

A working example of a perl script running:
1st get a cookie for access:
http://www.defectalisman.exofire.net/cgi-bin/tools/cookie.pl?mngr1
This should give mod status.
http://www.defectalisman.exofire.net/
All the links on the page are sent through a perl script. The script takes the arguments set by the ENV and acts upon the comands and parms.
 
Status
Not open for further replies.
Top