Using the core module Module::Load:
There are more ways to do it, this is one :-) (update: huck showed an even lower-level one while I typed, ++)use Module::Load; my $state = 'TX'; my $module = 'State::' . $state . '::formulas'; eval { load $module; } or do { my $err = $@; ... };
In reply to Re: Imagination greater than reality?
by 1nickt
in thread Imagination greater than reality?
by writch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |