in reply to Detecting a post via cgi

Use the CGI module.
To retrieve parameters sent to the script, do:
use CGI; my $q = new CGI; my %param = $q->Vars;
To check whether the params were sent via POST, do:
my $method = $q->request_method();
which should give either 'POST', 'GET' or 'HEAD'.

Replies are listed 'Best First'.
Re: Re: Detecting a post via cgi
by fglock (Vicar) on May 28, 2003 at 14:48 UTC

    ... or nothing, if the script was called from the command line.