in reply to Re: Gleaning POST or GET
in thread Post vs. Get

CGI.pm has request_method() which can be used for this.

If you're just using plain CGI, $ENV{'REQUEST_METHOD'} tells you the same thing.