Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    File::Find 5.8.8

    Download button

    No screenshots available
    Downloads: 306  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

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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