Beatnik has asked for the wisdom of the Perl Monks concerning the following question:
Any help would be appreciated :)sub routine { my $module = shift; my $routine = shift; my @params = @_; BEGIN { use "Foo::Bar::$module"; } #do something with $@ my $return = &{Foo::Bar::$module::$routine}(@params); return $return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Loading an unknown module
by broquaint (Abbot) on Jun 27, 2002 at 23:47 UTC | |
by lestrrat (Deacon) on Jun 28, 2002 at 00:05 UTC | |
by broquaint (Abbot) on Jun 28, 2002 at 12:31 UTC | |
|
Re: Loading an unknown module
by Aristotle (Chancellor) on Jun 27, 2002 at 23:03 UTC | |
by Beatnik (Parson) on Jun 27, 2002 at 23:08 UTC | |
by hossman (Prior) on Jun 27, 2002 at 23:42 UTC |