On Fri, Aug 03, 2001 at 03:05:28PM -0700, Randal L. Schwartz wrote:
> >>>>> "Paul" == Paul Clements <[EMAIL PROTECTED]> writes:
>
> Paul> Anyway, attached is a very rough patch against Find.pm for Perl 5.6.0 to
> Paul> implement the abort flag for File::Find.
>
> Paul> Is this a useful feature? Is this worth implementing in a future
> Paul> version?
>
> What's wrong with just throwing an exception (as in "die") when you
> find the right hit?
I dunno... die() and exceptions usually indicate a failure of some
sort--not success. There ought to be a way (or maybe more than one)
to tell File::Find to stop.
Jeremy
--
Jeremy D. Zawodny Web Geek, Perl Hacker, Yahoo!
http://www.zawodny.com/jzawodn/ [EMAIL PROTECTED]