Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Dynamically load all modules from a directory

by toolic (Bishop)
on Oct 01, 2009 at 13:36 UTC ( #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? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-01-26 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?