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
$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));
To install P5re, copy and paste the appropriate command in to your terminal.
cpanm
cpanm P5re
CPAN shell
perl -MCPAN -e shell install P5re
For more information on module installation, please visit the detailed CPAN module installation guide.