Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using File::Find to search subdirectories

Status
Not open for further replies.

bopeep36

Programmer
May 21, 2000
1
US
I want to search and perform operations on .txt files in the current and subdirecories.  Everyone says that using File::Find as opposed to writing your own recursive function is the way to go.  However, I don't find the perldoc very useful.  Can someone give me a few examples of how to use this module?  (particularly the find function).  Is there anyway to use it similar to glob?  (while defined(($filename = find(.txt file))) or something like that)  Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top