$Bill Luebkert writes:
 > [EMAIL PROTECTED] wrote:
 > > 
 > > All of which discussion illustrates, I think, why it is so often quicker
 > > and cleaner to use the ready made solution to the problem that comes
 > > with Perl, i.e. in this case, File::Find.
 > 
 > I use it all the time, but it's not necessarily quicker or cleaner - it is
 > probably easier though.

Possibly but I find it hard to imagine rolling your own not being both
less clean, and more code, than using File::Find.

 >  But once you have your own recursive tree-walker
 > though, you may want to continue using it because you know all the nuances
 > of it.

But not necessarily all the nuances of the problem, which have been
solved and debugged in File::Find. Not to mention portability
issues. Also, if written as Olivier suggested, with "insert your code
here" sections, the only way you can reuse the code is by cut&paste,
which is a bad idea.

 > The File::Find callback interface may confuse some also.

This is true. It is also why Richard Clamp wrote File::Find::Rule. It is a
fairly recent addition to CPAN, but if anyone from Activestate is
listening, perhaps it can be added to the PPM archive. I recommend it.

 >  It doesn't
 > hurt to know how to do these sorts of tasks.

True, and good way to find out would be to read File::Find :-)

HTH

-- 
Brian Raven
It's appositival, if it's there.  And it doesn't have to be there.
And it's really obvious that it's there when it's there.
             -- Larry Wall in <[EMAIL PROTECTED]>


-----------------------------------------------------------------------
The information contained in this e-mail is confidential and solely 
for the intended addressee(s). Unauthorised reproduction, disclosure, 
modification, and/or distribution of this email may be unlawful. If you 
have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message 
do not necessarily reflect those of 
LIFFE Holdings Plc or any of its subsidiary companies.
-----------------------------------------------------------------------

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to