../Text/Abbrev.pm
abbrev - create an abbreviation table from a list
use Abbrev;
abbrev *HASH, LIST
Stores all unambiguous truncations of each element of LIST
as keys key in the associative array indicated by *hash
.
The values are the original list elements.
abbrev(*hash,qw("list edit send abort gripe"));