in reply to File::Find considered hard?
The problem is not that it is hard to understand, the problem is, that in 99% of all cases, I just want a list of files, and not some code invoked on it - that's why File::Find::Rule is so much nicer. How often have you written code like the following?
my @files; File::Find::find( sub { push @files, $File::Find::name}, '.' );
The fact that File::Find only gives the local name as a parameter and not the full path to the file and that it sacrifices portability for speed ($USE_NLINK) just adds to that...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File::Find considered hard?
by Jenda (Abbot) on Mar 14, 2004 at 19:28 UTC | |
by Corion (Patriarch) on Mar 14, 2004 at 19:36 UTC | |
|
Re: File::Find considered hard?
by Abigail-II (Bishop) on Mar 14, 2004 at 21:10 UTC | |
by etcshadow (Priest) on Mar 14, 2004 at 21:29 UTC | |
by Abigail-II (Bishop) on Mar 14, 2004 at 21:39 UTC | |
by Anonymous Monk on Mar 15, 2004 at 04:40 UTC | |
by Anonymous Monk on Mar 15, 2004 at 06:03 UTC | |
| |
by Abigail-II (Bishop) on Mar 15, 2004 at 08:29 UTC | |
| |
by Anonymous Monk on Mar 15, 2004 at 06:06 UTC | |
by Abigail-II (Bishop) on Mar 15, 2004 at 08:31 UTC |