Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: RegEx within glob

by moritz (Cardinal)
on Feb 22, 2012 at 14:54 UTC ( [id://955540]=note: print w/replies, xml ) Need Help??


in reply to RegEx within glob

You're right, you can't combine globs and regexes, but of course you can filter the result of a glob based on a regex:

my @EnvListFile = grep /EnvList\.\d{10}/, glob("$HOMEDIR/data/EnvList.*");

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found