Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Auto loading modules for a plugin system would be pretty valid.

I must beg to differ. Or at least, I can't think of a reason :-).

  • Listing modules in a location, for a user to choose from, would be pretty valid. I suppose.
    But what if a plugin didn't appear as MyCompany::Plugins::PluginName? What if it was ThirdParty::CompanyPlugins::PluginName?
  • Auto-loading modules when required would be pretty valid.
    But that's just

    eval "use $module()" or die "Could not load plugin $module, error: $!";

  • Auto-loading modules listed in a config file would be pretty valid.
    Or just require() a file which use-s the ones you want. (Hey, perl has a syntax, why invent another?)

But why would you want to auto-load modules in a location? If you want to temporarily stop using the module, you'd have to uninstall it.


In reply to Auto-use all modules in location? by Anonymous Monk
in thread Being helpful to a fault? by graff

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2021-09-23 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?