in reply to Re: File::find hack
in thread File::find hack

Thank you for the answer. However maybe I wasn't clear enough. I know that once I reached the subdir, I have to check all the files there. I just don't like using last.

Replies are listed 'Best First'.
Re^3: File::find hack
by oko1 (Deacon) on Feb 25, 2012 at 14:04 UTC

    I just don't like using last.

    As well you shouldn't, at least in this case. 'last' is not a correct way of exiting a subroutine, and Perl should actually throw a warning if you run your code. The correct way of coming back from a sub is 'return', not 'last'.

    -- 
    I hate storms, but calms undermine my spirits.
     -- Bernard Moitessier, "The Long Way"