Tim Bunce > perl5.004_04 > Search::Dict

Download:
perl5.004_04.tar.gz

Dependencies

Annotate this POD

Related Modules

Data::Dumper
Scalar::Util
DBD::CSV
File::Spec
List::Util
File::Basename
IO::Dir
Benchmark::Timer
IO::Socket
Digest::MD5
more...
By perlmonks.org
Source   Latest Release: perl-5.14.4

NAME ^

Search::Dict, look - search for key in dictionary file

SYNOPSIS ^

    use Search::Dict;
    look *FILEHANDLE, $key, $dict, $fold;

DESCRIPTION ^

Sets file position in FILEHANDLE to be first line greater than or equal (stringwise) to $key. Returns the new file position, or -1 if an error occurs.

The flags specify dictionary order and case folding:

If $dict is true, search by dictionary order (ignore anything but word characters and whitespace).

If $fold is true, ignore case.

syntax highlighting: