DOKK / manpages / debian 11 / perl-doc / Text::Abbrev.3perl.en
Text::Abbrev(3perl) Perl Programmers Reference Guide Text::Abbrev(3perl)

Text::Abbrev - abbrev - create an abbreviation table from a list

    use Text::Abbrev;
    abbrev $hashref, LIST

Stores all unambiguous truncations of each element of LIST as keys in the associative array referenced by $hashref. The values are the original list elements.

    $hashref = abbrev qw(list edit send abort gripe);
    %hash = abbrev qw(list edit send abort gripe);
    abbrev $hashref, qw(list edit send abort gripe);
    abbrev(*hash, qw(list edit send abort gripe));
2023-11-25 perl v5.32.1