in reply to Limiting a glob

Maybe use opendir, readdir, closedir instead, and implement the limit yourself?

Replies are listed 'Best First'.
Re^2: Limiting a glob
by salva (Canon) on Mar 09, 2009 at 17:48 UTC
    ... 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.