in reply to Perl List files in directory
already does what you intend to do in a shorter, easier readable, more maintainable and much less errorprone way.use File::Find; find({wanted => sub {-f and print "file = $_\n"},follow => 1},'.');
Greetings,
Janek Schleicher
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl List files in directory (find/rule)
by Anonymous Monk on Apr 22, 2014 at 11:22 UTC | |
by bigj (Monk) on Apr 22, 2014 at 11:32 UTC | |
by Anonymous Monk on Apr 22, 2014 at 13:13 UTC | |
|
Re^2: Perl List files in directory
by Anonymous Monk on Apr 22, 2014 at 11:40 UTC |