abbrev - create an abbreviation table from a list


perl documentation  | view source Contained in the perl distribution.

Index


NAME

Top

abbrev - create an abbreviation table from a list

SYNOPSIS

Top

    use Text::Abbrev;
    abbrev $hashref, LIST




DESCRIPTION

Top

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.

EXAMPLE

Top

    $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));


perl documentation  | view source Contained in the perl distribution.