>>>>> "Jeremy" == Jeremy Zawodny <[EMAIL PROTECTED]> writes:

>> What's wrong with just throwing an exception (as in "die") when you
>> find the right hit?

Jeremy> I dunno... die() and exceptions usually indicate a failure of some
Jeremy> sort--not success.  There ought to be a way (or maybe more than one)
Jeremy> to tell File::Find to stop.

Well, stopping before the full scan is an "exceptional" event.  I'm
perfectly fine with using an exception mechanism to perform the task.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to