in reply to using a variable with require

Are you by chance trying to reinvent the Plugin wheel? If so, then why not just use (or take inspiration from) one of the Plugin architecture modules already available, eg. Plugin::Simple by stevieb.

If not, then it would likely be beneficial if you could elaborate on this apparent XY problem.


🦛

Replies are listed 'Best First'.
Re^2: using a variable with require
by geoffleach (Scribe) on Jun 22, 2022 at 14:20 UTC
    It does appear that I have re-invented the Plugin wheel :-) Module::Load appears to satisfy my need.