File::Index

An index function for files
Download

File::Index Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Graham Jenkins
  • Publisher web site:
  • http://search.cpan.org/~grahjenk/

File::Index Tags


File::Index Description

File::Index is a Perl module that provides an indexf function which operates on files in the same way that the index function operates on strings. It can be used where memory limitations prohibit the slurping of an entire file.indexf( *FH, $string, , ) Starts at the position specified by '$start' (or at the beginning) of the file associated with filehandle 'FH', and returns the absolute start position of the string '$string'. The buffer-size can be adjusted by specifying '$buffersize'.SYNOPSIS use File::Index; open(FILE,$myfile); my $pos=indexf(*FILE,"Foo"); print "Foo found at position: $pos\n" if $pos > -1;Product's homepage


File::Index Related Software