From: Andre Malo Date: Wed, 19 Feb 2003 14:39:39 +0000 (+0000) Subject: break down the beast and explain the obvious >:-> X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f8a3ee4ccedf0a42cca39e261b299c353012cc2;p=apache break down the beast and explain the obvious >:-> Also catch the case that the substitution may fail. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98730 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/apxs.in b/support/apxs.in index fe545a883d..a5a2f4e879 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -581,6 +581,10 @@ if ($opt_i or $opt_e) { # directive always appears *outside* of an . my $before = ($content =~ m|^(.*\n)#?\s*LoadModule\s+[^\n]+\n|s)[0]; + + # the '()=' trick forces list context and the scalar + # assignment counts the number of list members (aka number + # of matches) then my $cntopen = () = ($before =~ m|^\s*<[^/].*$|mg); my $cntclose = () = ($before =~ m|^\s*