>>>>> "RA" == Russ Allbery <rra@stanford.edu> writes:
[csh-style glob to regexp converter]
RA> I think that there's a module that does something along these lines
RA> already.
That might be File::KGlob2RE. I had a look and found it unsuitable as is.
It treats the directory specifier as special (so ? and * don't match '/'),
has special metacharacters for representing directories, and makes
judicious use of eval in its code. I doubt it would run under taint
checks.
I don't see any other applicable modules. In any case, it seems a waste to
requires users to find yet another module for something that can be
implemented in 30 lines of code.
- J<
Follow-Ups:
References:
|
|