Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re(2): path greping

by Arien (Pilgrim)
on Aug 29, 2002 at 22:35 UTC ( [id://193940]=note: print w/replies, xml ) Need Help??


in reply to Re: path greping
in thread path greping

next unless m|^.*.txt\z|s;

According to this regex a filename without extension with at least 4 characters ending in txt matches. To match .txt files:

next unless /\.txt\z/s;

To find out the directory your are looking at, use $File::Find::dir.

— Arien

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2025-02-09 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.