diff options
Diffstat (limited to 'perl-install/handle_configs.pm')
| -rw-r--r-- | perl-install/handle_configs.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/handle_configs.pm b/perl-install/handle_configs.pm index 669c434b0..97011f1f6 100644 --- a/perl-install/handle_configs.pm +++ b/perl-install/handle_configs.pm @@ -1,6 +1,5 @@ package handle_configs; -# $Id$ use diagnostics; use strict; @@ -77,11 +76,12 @@ sub comment_directive { my ($lines_ptr, $directive, $exactmatch) = @_; + my $success = 0; my $searchdirective = searchstr($directive); $searchdirective .= ".*" if !$exactmatch; - (s/^\s*($searchdirective)$/#$1/ and return 1) + (s/^\s*($searchdirective)$/#$1/ and $success = 1) foreach @$lines_ptr; - return 0; + return $success; } sub replace_directive { |
