From 7717e82cae372dff57e28527c50c1b8817852b0f Mon Sep 17 00:00:00 2001 From: lookshe Date: Mon, 16 Apr 2012 21:05:52 +0200 Subject: maximum number of output lines 3 --- file.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3