- or download this
use CGI qw/:standard/;
use CGI::Validate;
- or download this
my $variable = param( "var" ) || "OFF";
- or download this
if ($ENV{'REQUEST_METHOD'} eq "GET") {
$request = $ENV{'QUERY_STRING'};
...
|| warn "Could not get query\n";
}
##Then Save $request to file.