summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--file.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/file.pl b/file.pl
index 415199f..9d33969 100644
--- a/file.pl
+++ b/file.pl
@@ -66,9 +66,13 @@ if ($found == 0) {
if ($morethanone =~/1/) {
for ($i = 3; $i <= $#$list; $i++) {
if ($$list[$i] =~ /^.file extension $type$/i) {
+ if ($found == 3) {
+ print "for more see $wikiurl\n";
+ last;
+ }
$i++;
print ".$type is $$list[$i]\n";
- $found = 1;
+ $found++;
}
}
} else {