programming-examples/perl/SystemFunction/Get abbreviations.pl

11 lines
192 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl
use warnings;
use strict;
use Text::Abbrev;
my $abbreviations = abbrev(@ARGV);
foreach (sort keys %{$abbreviations}) {
print "$_ => $abbreviations->{$_} \n";
}