Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    File::Find 5.8.8

    Download button

    No screenshots available
    Downloads: 267  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    File::Find team | More programs
    Perl Artistic License / FREE
    April 26th, 2007, 23:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    File::Find description

    File::Find is a Perl module to traverse a directory tree.

    File::Find is a Perl module to traverse a directory tree.

    SYNOPSIS

    use File::Find;
    find(&wanted, @directories_to_search);
    sub wanted { ... }

    use File::Find;
    finddepth(&wanted, @directories_to_search);
    sub wanted { ... }

    use File::Find;
    find({ wanted => &process, follow => 1 }, '.');

    These are functions for searching through directory trees doing work on each file found similar to the Unix find command. File::Find exports two functions, find and finddepth. They work similarly but have subtle differences.

    find

    find(&wanted, @directories);
    find(%options, @directories);

    find() does a depth-first search over the given @directories in the order they are given. For each file or directory found, it calls the &wanted subroutine. (See below for details on how to use the &wanted function). Additionally, for each directory found, it will chdir() into that directory and continue the search, invoking the &wanted function on each file or subdirectory in the directory.

    finddepth

    finddepth(&wanted, @directories);
    finddepth(%options, @directories);

    finddepth() works just like find() except that is invokes the &wanted function for a directory after invoking it for the directory's contents. It does a postorder traversal instead of a preorder traversal, working from the bottom of the directory tree up where find() works from the top of the tree down.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    traverse directory tree | find files | Perl module | File::Find | traverse | directory



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM