diff options
author | lookshe <lookshe@fumuga.com> | 2012-04-16 21:05:52 +0200 |
---|---|---|
committer | lookshe <lookshe@fumuga.com> | 2012-04-16 21:05:52 +0200 |
commit | 7717e82cae372dff57e28527c50c1b8817852b0f (patch) | |
tree | f7e4cb5b2613b2a5bdddfa2fbed5d87927ff1c8f | |
parent | aa622c626e94895e0f952f2310220684881cecd9 (diff) |
maximum number of output lines 3
-rw-r--r-- | file.pl | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 { |