Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Limiting a glob

by moritz (Cardinal)
on Mar 09, 2009 at 17:39 UTC ( #749361=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://749361]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2022-01-16 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (49 votes). Check out past polls.

    Notices?