File-Locate-Iterator
view release on metacpan or search on metacpan
lib/File/Locate/Iterator.pm view on Meta::CPAN
# failed then this is -1 and $it->rewind is not possible.
#
# Normally fh_start is simply length($header) for a database starting at
# the start of the file, but a database_fh arg which is positioned at
# some offset into a file can be read and remembering an fh_start
# position lets $it->rewind work on it too.
#
# fm
# When using mmap, a File::Locate::Iterator::FileMap object which is the
# cache entry for the database file, otherwise no such field. This is
# hung onto to keep it alive while in use. $self->{'mref'} is
# $fm->mmapref in this case.
#
# pos
# When mref is not undef, an integer offset into the $$mref string which
# is the current read position. The file header is checked in new() so
# the initial value is length($header), ie. 10, the position of the
# first entry (or possibly EOF).
#
# entry
# String of the last database entry returned, or no such field before
( run in 1.199 second using v1.01-cache-2.11-cpan-14f38c9f855 )