Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Recursive file processing from a path and printing output in a file

by davido (Archbishop)
on Dec 09, 2012 at 01:02 UTC ( #1007941=note: print w/ replies, xml ) Need Help??


in reply to Recursive file processing from a path and printing output in a file

Reading your directory structure with readdir and with File::Find is not quite what I had in mind when I answered your previous question. Everything you're doing in the while loop could be attached to your wanted function, reducing the overall work and complexity of your script. If your 'wanted' is getting to complicated, just break it out into smaller chunks of logic. Have you read the documentation for File::Find yet?

You (the programmer) are working twice as hard as you need to (and so is your script).


Dave


Comment on Re: Recursive file processing from a path and printing output in a file
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-07-25 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls