in reply to Re: CGI: Make one big program or lots of little ones?
in thread CGI: Make one big program or lots of little ones?
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();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: CGI: Make one big program or lots of little ones?
by DarkProphet (Novice) on Feb 23, 2001 at 21:01 UTC | |
by tomhukins (Curate) on Feb 23, 2001 at 21:25 UTC |