{
    "mode": "perldoc",
    "parameter": "Search::Dict",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Search%3A%3ADict/json",
    "generated": "2026-06-10T16:26:01Z",
    "synopsis": "use Search::Dict;\nlook *FILEHANDLE, $key, $dict, $fold;\nuse Search::Dict;\nlook *FILEHANDLE, $params;",
    "sections": {
        "NAME": {
            "content": "Search::Dict - look - search for key in dictionary file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Search::Dict;\nlook *FILEHANDLE, $key, $dict, $fold;\n\nuse Search::Dict;\nlook *FILEHANDLE, $params;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Sets file position in FILEHANDLE to be first line greater than or equal (stringwise) to *$key*.\nReturns the new file position, or -1 if an error occurs.\n\nThe flags specify dictionary order and case folding:\n\nIf *$dict* is true, search by dictionary order (ignore anything but word characters and\nwhitespace). The default is honour all characters.\n\nIf *$fold* is true, ignore case. The default is to honour case.\n\nIf there are only three arguments and the third argument is a hash reference, the keys of that\nhash can have values \"dict\", \"fold\", and \"comp\" or \"xfrm\" (see below), and their corresponding\nvalues will be used as the parameters.\n\nIf a comparison subroutine (comp) is defined, it must return less than zero, zero, or greater\nthan zero, if the first comparand is less than, equal, or greater than the second comparand.\n\nIf a transformation subroutine (xfrm) is defined, its value is used to transform the lines read\nfrom the filehandle before their comparison.\n",
            "subsections": []
        }
    },
    "summary": "Search::Dict - look - search for key in dictionary file",
    "flags": [],
    "examples": [],
    "see_also": []
}