Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Dynamically load all modules from a directory

by toolic (Bishop)
on Oct 01, 2009 at 13:36 UTC ( [id://798653]=note: print w/replies, xml ) Need Help??


in reply to Dynamically load all modules from a directory

Try require instead of use, whose documentation states "that Module must be a bareword".
  • Comment on Re: Dynamically load all modules from a directory

Replies are listed 'Best First'.
Re^2: Dynamically load all modules from a directory
by chanakya (Friar) on Oct 02, 2009 at 10:33 UTC
    Thanks everyone for your valuable comments.
    I looked at Module::Pluggable, read the docs and implemented it right away.

    And my impressions?? the module rocks and fits to my needs perfectly.

    Thank you once again.
      +1

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found