Perl 5 version 32.0 documentation

Text::Abbrev

NAME

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

SYNOPSIS

  1. use Text::Abbrev;
  2. abbrev $hashref, LIST

DESCRIPTION

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

  1. $hashref = abbrev qw(list edit send abort gripe);
  2. %hash = abbrev qw(list edit send abort gripe);
  3. abbrev $hashref, qw(list edit send abort gripe);
  4. abbrev(*hash, qw(list edit send abort gripe));