Iterator::Simple::Locate - read "locate" database with Iterator::Simple


File-Locate-Iterator documentation  | view source Contained in the File-Locate-Iterator distribution.

Index


NAME

Top

Iterator::Simple::Locate -- read "locate" database with Iterator::Simple

SYNOPSIS

Top

 use Iterator::Simple::Locate;
 my $it = Iterator::Simple::Locate->new;
 while (defined (my $entry = $it->())) {
   print $entry,"\n";
 }

DESCRIPTION

Top

Iterator::Simple::Locate reads a "locate" database file in iterator style. It's implemented as a front-end to File::Locate::Iterator, allowing the various Iterator::Simple features to be used to filter or crunch entries from the locate database.

See examples/iterator-simple.pl in the File-Locate-Iterator sources for a simple complete program.

FUNCTIONS

Top

$it = Iterator::Simple::Locate->new (key=>value,...)

Create and return a new Iterator::Simple object. Optional key/value pairs as passed to File::Locate::Iterator->new.

$entry = $it->()

Return the next entry from the database, or return undef when no more entries.

SEE ALSO

Top

Iterator::Simple, File::Locate::Iterator

HOME PAGE

Top

http://user42.tuxfamily.org/file-locate-iterator/index.html

COPYRIGHT

Top


File-Locate-Iterator documentation  | view source Contained in the File-Locate-Iterator distribution.