However, I would use a hash instead of your @safesubs and $ok:
my %valid = map {$_ => undef} qw(this_sub that_sub other_sub); die unless exists $valid{$op}; &$op();
In reply to Re: Re: CGI: Make one big program or lots of little ones?
by tomhukins
in thread CGI: Make one big program or lots of little ones?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |