Oops - was only paying attention to the glob....
Try my @files = glob "${dir}/*pl";
In reply to Re^3: Use Of Glob On File Extensions by RonW in thread Use Of Glob On File Extensions by NewToPerl777