http://qs321.pair.com?node_id=203210

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I want to execute a perl script and pass a parameter. In the script, I want to capture the parameter (and validate it). If not valid, then I will handle by printing a message and exiting. I have read similar petitions and suggestions and tried them, but cannot get it to work (HELP!). See below for a code snippet:
#make the call: http://www.test.com/myscript.cgi?id=1234
***Below is the snippet from myscript.cgi: #!/usr/bin/perl -w print "Content-type: text/html\n\n"; $myvalue = param("test"); print "<HTML>\n"; print "<BODY BGCOLOR=#FFFFFF>\n"; print "<CENTER>\n"; print "myvalue: $myvalue"; print "</CENTER>\n"; print "</BODY></HTML>";