From d6f5330ee63311a3e5c8ef52693ac7193ea83ede Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 23 May 2003 16:10:03 +0000 Subject: perl_checker fixes --- perl-install/printer/main.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/printer/main.pm') diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm index ac4ee0fbf..d0c4639bf 100644 --- a/perl-install/printer/main.pm +++ b/perl-install/printer/main.pm @@ -662,7 +662,7 @@ sub read_location { my ($cupsd_conf_ptr, $path) = @_; my @result; - if (grep { m!^\s*! } @$cupsd_conf_ptr) { + if (any { m!^\s*! } @$cupsd_conf_ptr) { my $location_start = -1; my $location_end = -1; # Go through all the lines, bail out when start and end line found @@ -707,7 +707,7 @@ sub rip_location { my @location; my $location_start = -1; my $location_end = -1; - if (grep { m!^\s*! } @$cupsd_conf_ptr) { + if (any { m!^\s*! } @$cupsd_conf_ptr) { # Go through all the lines, bail out when start and end line found for (my $i = 0; $i <= $#{$cupsd_conf_ptr} == -1; @@ -1617,7 +1617,7 @@ sub poll_ppd_base() { # recommended and there was a PostScript PPD? Make # the PostScript PPD the recommended one my $firstfound = $foundkeys[0]; - if (!(grep { /\(recommended\)/ } @foundkeys)) { + if (!(any { /\(recommended\)/ } @foundkeys)) { # Do it only if none of the native PostScript # PPDs for this printer is already "recommended" foreach (keys %{$thedb{$firstfound}}) { -- cgit v1.2.1