use calls require and then import(). If you need to import symbols, you'll have to call import() manually. Untested, almost pseudo-code follows:
my $package = "Bot::Protocol::$proto"; eval { require $package }; $package->import();
In reply to Re: Exporting subs from package required in an eval
by chromatic
in thread Exporting subs from package required in an eval
by cfreak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |