projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
843b104
)
try reverse compounds like T/FR5DX as well
author
minima
<minima>
Thu, 4 Jul 2002 16:31:11 +0000
(16:31 +0000)
committer
minima
<minima>
Thu, 4 Jul 2002 16:31:11 +0000
(16:31 +0000)
perl/Prefix.pm
patch
|
blob
|
history
diff --git
a/perl/Prefix.pm
b/perl/Prefix.pm
index d70d921b404e31dc795860610984a588da9ee586..66f3644e9333a1b5a17ad9a70cafcd30776a1ce0 100644
(file)
--- a/
perl/Prefix.pm
+++ b/
perl/Prefix.pm
@@
-228,6
+228,15
@@
L1: for ($n = 0; $n < @parts; $n++) {
$part .= '*' unless $part eq '*' || $part eq $try;
dbg("Compound prefix: $try $part" );
}
$part .= '*' unless $part eq '*' || $part eq $try;
dbg("Compound prefix: $try $part" );
}
+ if (@try == 0) {
+ $try = join('/', reverse @parts);
+ @try = get($try);
+ if (isdbg('prefix')) {
+ my $part = $try[0] || "*";
+ $part .= '*' unless $part eq '*' || $part eq $try;
+ dbg("Compound prefix: $try $part" );
+ }
+ }
if (@try && $try eq $try[0]) {
push @out, @try;
} else {
if (@try && $try eq $try[0]) {
push @out, @try;
} else {