in reply to Recursion problem, HELP!

Your code would benefit greatly (easier to write, easier to debug, easier to verify in code review, easier to maintain) to use File::Find rather than writing your own "yet another directory recurser".

Even if you're doing this "as an exercise", you should first study the source code of the standard module for the basic concepts.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE: Re: Recursion problem
by SamQi (Beadle) on Sep 20, 2000 at 21:00 UTC

    I originally *HAD* used File::Find, but it did not recurse (nor did File::Recurse) the files the way I wanted it to. I looked through and couldn't (nor could anybody else) find a way to fool it into changing the order it did things.

    So I'm writing my own recursion that adresses symlinks *first* and then looks at directories.

    Trust me...if I could use File::Find to do what I wanted, I would do it in a heartbeat. I *like* File::Find

    Thanks for the pointer, though :)

      I've addressed some of the problem with absolute paths...but it's still not running the parse function when it should.