|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Recursion not workingby BrowserUk (Pope) |
| on Jul 28, 2012 at 19:19 UTC ( #984223=note: print w/ replies, xml ) | Need Help?? |
|
It looks like I'm loosing my directory handle but I can't figure out why. DIR is a global filehandle. When you recurse, you re-use that same global directory handle and the previous level's use of it gets over-written. You have two options:
One requires minimum changes; the other is seen as the "Modern" option. Both will work. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||