[\d\w] is the same as \w, and adding an anchor to the regex pattern might be more efficient:
push @files, $_ if /^\w[^TV]/;
or simply:
my @files = grep {/^\w[^TV]/} glob("*.pl");
or try shell to negate the character-class:
my @files = glob("h[!TV]*.pl");
Regards,
Xicheng
In reply to Re^2: File name filtering with ^ ?
by xicheng
in thread File name filtering with ^ ?
by Rory
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |