perlfunc
root
<P>
abbrev - create an abbreviation table from a list
<P>
<HR>
<P>
<PRE> use Text::Abbrev;
abbrev $hashref, LIST
</PRE>
<P>
<HR>
<P>
Stores all unambiguous truncations of each element of
<FONT SIZE=-1>LIST</FONT> as keys key in the associative array referenced
to by <CODE>$hashref</CODE>. The values are the original list elements.
<P>
<HR>
<H1><A NAME="EXAMPLE">EXAMPLE</A></H1>
<P>
<PRE> $hashref = abbrev qw(list edit send abort gripe);
</PRE>
<P>
<PRE> %hash = abbrev qw(list edit send abort gripe);
</PRE>
<P>
<PRE> abbrev $hashref, qw(list edit send abort gripe);
</PRE>
<P>
<PRE> abbrev(*hash, qw(list edit send abort gripe));
</PRE>
<HR>