http://www.perlmonks.org?node_id=798653


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