in reply to Re: Re: Re: Re: Load all modules in directory
in thread Load all modules in directory

The error you point out is part of the reason I suggested changing * to *.pm. Directories won't load very happily. Although, in this case we could add this instead of the *.pm:

require $_ unless -d $_;

But, with this solution, we'd still run into problems if there are other odd files like READMEs or something else that got stuck in the directory we are scanning.