Very handy for testing as I can then call each sub individually.## main foo starts my $run = param("run"); if ($run eq 'sub_1') { sub_1; } elsif ($run eq 'sub_2') { sub_2; } else { start_page }
In reply to Re: How do I test a cgi script's subroutines?
by spatterson
in thread How do I test a cgi script's subroutines?
by hesco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |