From c85425ed49345940db69e57fbf9b91c15c6d821e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 19 Dec 2002 20:02:10 +0000 Subject: do not use "$1 !~ ..." --- perl-install/printer/gimp.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/printer') diff --git a/perl-install/printer/gimp.pm b/perl-install/printer/gimp.pm index e6eab53c1..0b0ebdaed 100644 --- a/perl-install/printer/gimp.pm +++ b/perl-install/printer/gimp.pm @@ -364,8 +364,8 @@ sub isprinterconfigured { $drivernotps2 = $1 ne "ps2"; } elsif (/^\s*PPD\-File:\s*(\S+)\s*$/) { $ppdfileset = 1; - } elsif (/^\s*Destination:\s*(\S+.*)$/) { - $nonrawprinting = $1 !~ /\-o\s*raw/; + } elsif (my ($dest) = /^\s*Destination:\s*(\S+.*)$/) { + $nonrawprinting = $dest !~ /\-o\s*raw/; } } } -- cgit v1.2.1