my $module = 'Foo::Bar'; my $pm = $module; $pm =~ s{::}{/}g; $pm .= '.pm'; eval { require $pm } or die("Unable to load plugin $module: $@\n");
Other solutions provided in this thread.
In reply to Re: check symbol table w/ dynamic name
by ikegami
in thread check symbol table w/ dynamic name
by skerr1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |