Berkeley CSUA MOTD:Entry 40002
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

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.