
![]() | ![]() |
8.182. Search::Dict
Searches for a key in an ordered text
file and sets the file position. Exports one function.
look |
look *fh, key, dict, fold
Performs string search and sets the position in filehandle
fh to the first line with a key equal to
or greater than key. Returns the new file
position, or -1 in case of error. Takes the
following arguments:
fh
Filehandle of the dictionary filekey
Key to search fordict
If true, searches in dictionary order, considering only word
characters and whitespace
fold
If true, ignores case
![]() | ![]() | ![]() |
8.181. SDBM_File | ![]() | 8.183. SelectSaver |

Copyright © 2002 O'Reilly & Associates. All rights reserved.