But that is exactly what File::KGlob does. I'm guessing you say using it isn't an option because you can't rely on it being installed. It is one, self-contained file and it isn't even very big. Just copy it to where you need it. It beats copying your own reinvented wheel to where you need it.
In reply to Re: Converting shell wildcards into regular expressions
by tye
in thread Converting shell wildcards into regular expressions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |