Or, to expand further, and depending on the actual number of subroutines, use a dispatch table:
($dispatch{ $cgi_query->param('action') } || \&default_sub)->();
In reply to Re^2: call subroutine from cgi form
by blazar
in thread call subroutine from cgi form
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |