in reply to Re: call subroutine from cgi form
in thread call subroutine from cgi form

Or, to expand further, and depending on the actual number of subroutines, use a dispatch table:

($dispatch{ $cgi_query->param('action') } || \&default_sub)->();
--
If you can't understand the incipit, then please check the IPB Campaign.