Jeremy Zawodny wrote:
> Randal L. Schwartz wrote:
> > 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.  

Throwing an exception is (imho) the perfect way to "abort" the find.

As long as you catch the exception, its semantics are entirely 
up to you.


> There ought to be a way (or maybe more than one)
> to tell File::Find to stop.

There already is a perfect one. Why another?

-- 
John Porter

Science class should not end in tragedy.

Reply via email to