Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: using a variable with require

by hippo (Bishop)
on Jun 22, 2022 at 08:41 UTC ( [id://11144940]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11144940]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-03-28 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found