Text::Abbrev(3pm) Perl Programmers Reference Guide Text::Abbrev(3pm)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```
    use Text::Abbrev;
    abbrev $hashref, LIST
```

# [DESCRIPTION](#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](#EXAMPLE)

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

2026-10-21 perl v5.44.0

---

Document: Text::Abbrev(3pm) from perl 5.44.0-r2 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
