in reply to How to Pass more than one file in perl MY function

my @files=<data/j*.[13a].txt>;

Replies are listed 'Best First'.
Re^2: How to Pass more than one file in perl MY function
by Marshall (Canon) on Sep 30, 2022 at 06:12 UTC
    Nice. I didn't expect that to work, but it does. I couldn't find any spec on what is allowed in the glob syntax, all I knew for sure was * and ?. I didn't know about a character set. Learned something new - thanks.