http://www.perlmonks.org?node_id=557097

gopalr has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks

I have cgi-script name called main.cgi.

The following code works fine while running the main.cgi when I pass "newcgi.cgi" as an action name.

$query->startform(-method=>'POST', -action=>"newcgi.cgi");

And, there is soubroutine name called "report" in main.cgi.

My question is can we pass the action value as a subroutine.

Thanks in advance!!
Gopal R.