Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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).


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007941]
[Corion]: Hehe - $work is a place where we have lots of (money) accounts, and lots of journals where every transaction is recorded. But our HR system where the accounts of hours worked and vacation days taken are stored, there is no real account of who changed ...
[Corion]: ... that balance, and when. And it seems to me that they somehow really messed up the database since the start of the year and have been frantically adding and subtracting numbers from the totals, but without trace ;)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2018-01-23 16:42 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (249 votes). Check out past polls.