Seth Woolley's Man Viewer

Search::Dict(3) - Search::Dict, look - search for key in dictionary file - man 3 Search::Dict

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

Search::Dict(3)        Perl Programmers Reference Guide        Search::Dict(3)



NAME
       Search::Dict, look(1,8,3 Search::Dict) - search for key in(1,8) dictionary file(1,n)

SYNOPSIS
           use Search::Dict;
           look(1,8,3 Search::Dict) *FILEHANDLE, $key, $dict, $fold;

           use Search::Dict;
           look(1,8,3 Search::Dict) *FILEHANDLE, $params;

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

       The flags specify dictionary order and case folding:

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

       If $fold is true, ignore case.  The default is to honour case.

       If there are only three arguments and the third argument is a hash ref-
       erence, the keys of that hash can have values "dict", "fold", and
       "comp" or "xfrm" (see below), and their correponding values will be
       used as the parameters.

       If a comparison subroutine (comp) is defined, it must return less(1,3) than
       zero, zero, or greater than zero, if(3,n) the first comparand is less(1,3) than,
       equal, or greater than the second comparand.

       If a transformation subroutine (xfrm) is defined, its value is used to
       transform the lines read(2,n,1 builtins) from the filehandle before their comparison.



perl v5.8.5                       2001-09-21                   Search::Dict(3)

References for this manual (incoming links)