ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы.



abbrev

abbrev (\%hashref, list)

Takes each string in list and constructs the hash referenced by \hashref. Each key is an unambiguous truncation of one of the strings, and the value is the full string (where unambiguous means that there is only one possible expansion that matches one of the strings in the list). For example, if list contains "file" and "find", then the key/value pairs created include:

fil  => file
file => file
fin  => find
find => find
Both "f" and "fi" are ambiguous, since they start both words, and therefore they don't appear as keys.