| ||||||
| 5/17 |
| 2005/10/6-9 [Computer/SW/Languages/Perl] UID:40002 Activity:nil |
10/6 Is there an easy way in Perl to enumerate a complete file tree from a
given directory?
\_ File::Find?
\_ This looks far too complex for what I need. But if there's
nothing simpler I guess I can use it.
\_ use File::Find;
find(sub { print("$File::Find::name\n"); }, '.');
# how much simpler did you want?
\_ Yeah, after trying it, it was easier than I thought.
Thanks for the recommendation. |