Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Directory Recursion

by count0 (Friar)
on Jan 05, 2002 at 09:19 UTC ( #136482=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        process_files() with the base path as 'path'
    
    ...
                    process it
                if it is a directory
                    process_files() with this dir as 'path'
    
  2. or download this
        list_of_all_files = process_files() with the base path as 'path'
    
    ...
                    process_files() with this dir as 'path'
                    add the files returned from process_files() to our lis
    +t of files
            return our list of files
    
  3. or download this
    process_files ($base_path);
    
    ...
            }
        }
    }
    
  4. or download this
    process_files ($base_path);
    
    ...
        # NOTE: we're returning the list of files
        return @files;
    }
    
  5. or download this
    # Accepts one argument: the full path to a directory.
    # Returns: A list of files that end in '.html' and have been
    ...
            map { -d $_ ? get_new_htmls ($_) : $_ }
            @files;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://136482]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-09-21 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (175 votes), past polls