use Class::Inspector; my $op = $query->param('option'); unless ( Class::Inspector->installed($op) ) { die "Invalid option '$op'"; } load as normal...
In reply to Re^2: better ways than eval to dynamic load a module
by adamk
in thread better ways than eval to dynamic load a module
by jbrugger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |