Maybe you think those character classes look ugly, and maybe the difference is minimal, but in a case like this, I think it's a wise investment. Also, you may wish to use a different ending anchor in place of $.my @files = map s/\.[Rr][Aa][Mm]$// ? $_ : (), readdir DH;
In reply to Re: Grabbing file prefixes with Reg Exp
by japhy
in thread Grabbing file prefixes with Reg Exp
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |