Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 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 > Perl Modules

    Find::File::Iterator 0.4

    Download button

    No screenshots available
    Downloads: 562  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.5/5)
    9 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Robert Silve | More programs
    Perl Artistic License / FREE
    July 25th, 2008, 23:36 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Find::File::Iterator description

    Find::File::Iterator is a Perl module for interator interface for search files.

    Find::File::Iterator is a Perl module for iterator interface for search files.

    SYNOPSIS

    use File::Find::Iterator;
    my $find = File::Find::Iterator->create(dir => ["/home", "/var"],
    filter => &isdir);
    sub isdir { -d }

    while (my $f = $find->next) { print "file : $fn" }

    #reread with different filter
    $find->filter(&ishtml);
    $find->first;
    while (my $f = $find->next) { print "file : $fn" }

    sub ishtml { /.html?$/ }

    # using file for storing state
    $find->statefile($statefile);
    $find->first;
    # this time it could crash
    while (my $f = $find->next)
    { print "file : $fn" }

    # using imap and igrep
    use File::Find::Iterator qw(imap igrep);
    my $find = File::Find::Iterator->new(dir => ["/home", "/var"]);
    $find = imap { -M } igrep { -d } $find;

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    iterator interface | search files | Perl module | iterator | interface | search

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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