in reply to getting the name of the module in runtime and calling a function from that module
#!/usr/bin/perl -w use strict; my $path = 'path/to/modlib'; my $module = "MyMod"; my $func = "some_func"; require "$path/$module.pm"; eval "${module}::$func()";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: getting the name of the module in runtime and calling a function from that module
by krisraman (Novice) on Jun 03, 2002 at 20:45 UTC | |
by Joost (Canon) on Jun 04, 2002 at 14:04 UTC |