in reply to Imagination greater than reality?
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 = $@; ... };
|
|---|