It's because your ./FILES/ext_subs doesn't contain only PL files; it also contains the folder "aimhandlers" - so when it gets to "aimhandlers" it tries requiring it, and it's not valid Perl code--it's not valid ANY code--it's a folder.
You'll have to do a check for the PL extension for each $file like this:
Code:
next unless $file =~ /\.pl$/i;
That will make it go to the next file unless it ends with ".pl" (you should do that check first thing in the foreach loop, before it tries requiring it). _________________ Current Site (2008) http://www.cuvou.com/