in reply to Form inside perl script
It sounds like you're asking how to tell if you got a POST request or a GET request. CGI can tell you this with request_method() like so:
use CGI; my $cgi = CGI->new(); if ( 'POST' eq $cgi->request_method() ) { # other methods: GET, HEAD }
|
|---|