in reply to Re: find loses $found in find
in thread find loses $found in find

Well, this is enlightenment - of the can of worms variety! Looking at my code, I 'find' <sigh> that just about my whole script is actually already inside a 'find'.

So I'll re-work the whole thing using the breadth-first approach, but it's a real shame when such a useful thing as File::Find turns out to have such limitations.

Can anyone suggest an alternative searching module to File::Find before I start chopping up my script?

Dave

Replies are listed 'Best First'.
Re: Re: Re: find loses $found in find
by broquaint (Abbot) on Sep 13, 2002 at 15:53 UTC
    Have you checked out the fabtastic File::Find::Rule? From the looks of your conditions it should be a perfect fit!
    HTH

    _________
    broquaint

      Good idea. And it looks like it maintains its state internally so the recursion shouldnt be a problem...

      --- demerphq
      my friends call me, usually because I'm late....

Re: Re: Re: find loses $found in find
by demerphq (Chancellor) on Sep 13, 2002 at 14:52 UTC
    Unfortunately I cant suggest anything short of rewriting File::Find to be object oriented.

    Sorry.

    --- demerphq
    my friends call me, usually because I'm late....