in reply to Grabbing file prefixes with Reg Exp
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Grabbing file prefixes with Reg Exp
by dws (Chancellor) on May 14, 2001 at 00:03 UTC | |
|
Re: Re: Grabbing file prefixes with Reg Exp
by MeowChow (Vicar) on May 14, 2001 at 02:18 UTC | |
by japhy (Canon) on May 14, 2001 at 02:47 UTC |