#!/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()";
In reply to Re: getting the name of the module in runtime and calling a function from that module
by Anonymous Monk
in thread getting the name of the module in runtime and calling a function from that module
by krisraman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |