in reply to Re: Re: runtime "use" statements via string eval
in thread runtime "use" statements via string eval

First of all I think that external dependencies like that should be up front and obvious.

Secondly each string eval ties up memory. If this is called in a tight loop, you will have a serious memory leak.

A better way to do it is:

require Foo::Bar::Baz; Foo::Bar::Baz->import();
and leave out the second line if it is not necessary.