use CGI qw(:standard); my $email = param('email');
CGI scripts also need to have their permissions changed so they can be run properly when accessed via something other than the command line. Generally speaking, this means changing to 755 (read, write, execute for owner, read and execute for group and all).
You may need to include the path to the Perl interpreter in the first line of the script. Maybe like so:
#!/usr/bin/perl
EDIT: And you need to print out a Content-Type before printing any other content:
print "Content-Type: text/html\n\n";
EDIT: One final note, you need to make dang sure that if you are using the command line to ping the domain (via backticks or whatever), you use regex to verify that nobody has inserted bad stuff into the email address, because otherwise they could essentially type all sorts of nasty stuff into the email and your script would run it for them.
In reply to Re: Creating a web application in Perl
by TJPride
in thread Creating a web application in Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |