summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <lookshe@fumuga.com>2012-04-16 21:05:52 +0200
committerlookshe <lookshe@fumuga.com>2012-04-16 21:05:52 +0200
commit7717e82cae372dff57e28527c50c1b8817852b0f (patch)
treef7e4cb5b2613b2a5bdddfa2fbed5d87927ff1c8f
parentaa622c626e94895e0f952f2310220684881cecd9 (diff)
maximum number of output lines 3
-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 {