in reply to Use Of Glob On File Extensions

Try my @files = glob "${dir}'*.pl'";

In yours, you would be getting any file with 'pl' anywhere in the name.

Replies are listed 'Best First'.
Re^2: Use Of Glob On File Extensions
by NewToPerl777 (Novice) on Nov 18, 2014 at 22:02 UTC

    Hmm, I just tried that and I received the same result.

      Oops - was only paying attention to the glob....

      Try my @files = glob "${dir}/*pl";

        You're right, that worked. Thank you for your help. My familiarity on working with glob is still new, so I apologize for the nooby error.