5 ;# $long = $foo{$short};
8 # This library is no longer being maintained, and is included for backward
9 # compatibility with Perl 4 programs which may require it.
10 # This legacy library is deprecated and will be removed in a future
13 # In particular, this should not be used as an example of modern Perl
14 # programming techniques.
16 # Suggested alternative: Text::Abbrev
26 @extra = split(//,$name);
27 $abbrev = shift(@extra);
30 next if $cmp eq $name;
31 while (@extra && substr($cmp,0,$len) eq $abbrev) {
32 $abbrev .= shift(@extra);
36 $domain{$abbrev} = $name;
37 while ($#extra >= 0) {
38 $abbrev .= shift(@extra);
39 $domain{$abbrev} = $name;