It's not better. It's something else. readdir() gives you the files in a single directory. File::Find gives you all files in a tree.
If the question was "why is File::Find better than recursing through the directory tree oneself using opendir() and readdir()" ... I'd say ... because it's well tested and maintained. You may reinvent the wheel if you feel like it I don't find it necessary.
Jenda
Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne
Edit by castaway: Closed small tag in signature
In reply to Re: Re: Re: Re: Moving folders using FTP
by Jenda
in thread Moving folders using FTP
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |