in reply to Use Of Glob On File Extensions

I what way does it "not work as intended"?

Why the single quotes in the string you pass to glob? I'd understand what is going on if there might be spaces in your path to be globed and you had my @files = glob "'${dir}*pl*'";, but the quotes around *pl* don't make sense to me.

Perl is the programming world's equivalent of English

Replies are listed 'Best First'.
Re^2: Use Of Glob On File Extensions
by NewToPerl777 (Novice) on Nov 18, 2014 at 23:24 UTC
    I'm still new to the syntax on working with glob. I just made a dumb mistake in adding the extra parentheses. I did not understand the context of the quotes correctly.