Help for this page
use CGI; ... if ( 'POST' eq $cgi->request_method() ) { # other methods: GET, HEAD }