in reply to Re: RegEx within glob
in thread RegEx within glob

Fun with Multiplicative Operators:
my @EnvListFile = glob "$HOMEDIR/data/EnvList." . '[0-9]' x 10;

Replies are listed 'Best First'.
Re^3: RegEx within glob
by Eliya (Vicar) on Feb 22, 2012 at 15:36 UTC

    I wasn't suggesting you should write "[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]" in Perl — sure you can generate the pattern any way you like :)

    I just meant to point out that globbing itself provides no means to say "10 times" a subpattern (like {10} in regex); you have to specify the pattern "unrolled" instead.