http://qs321.pair.com?node_id=749365


in reply to Re: Limiting a glob
in thread Limiting a glob

... and use a regular expression to select the files you are interested in.

You can use Text::Glob to transform a file name containing wildcards into a regular expression.

Here you will find another function (_glob_to_regex) implementing a glob to regex transformation.