summaryrefslogtreecommitdiffstats
path: root/perl-install/printer.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-17 11:17:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-17 11:17:51 +0000
commit063027ee2ff8df152a3d3a758916c0457fc18a89 (patch)
tree4b8cd399c8c15fe7242cdbcdf43135609f8b60c0 /perl-install/printer.pm
parent127a2a70946027f2f5c8855f9450713407213441 (diff)
downloaddrakx-063027ee2ff8df152a3d3a758916c0457fc18a89.tar
drakx-063027ee2ff8df152a3d3a758916c0457fc18a89.tar.gz
drakx-063027ee2ff8df152a3d3a758916c0457fc18a89.tar.bz2
drakx-063027ee2ff8df152a3d3a758916c0457fc18a89.tar.xz
drakx-063027ee2ff8df152a3d3a758916c0457fc18a89.zip
remove "$_ =~ " (as detected by new perl_checker)
Diffstat (limited to 'perl-install/printer.pm')
-rw-r--r--perl-install/printer.pm18
1 files changed, 9 insertions, 9 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index c6478a2ad..8d0357ab2 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -869,7 +869,7 @@ sub set_cups_autoconf {
}
# Remove all valid "CUPS_CONFIG" lines
- ($_ =~ /^\s*CUPS_CONFIG/ and $_="") foreach @file_content;
+ (/^\s*CUPS_CONFIG/ and $_="") foreach @file_content;
# Insert the new "Printcap" line
if ($autoconf) {
@@ -2154,11 +2154,11 @@ sub addentry {
local $_;
for (@lines) {
if (!$sectionfound) {
- if ($_ =~ /^\s*\[\s*$section\s*\]\s*$/) {
+ if (/^\s*\[\s*$section\s*\]\s*$/) {
$sectionfound = 1;
}
} else {
- if (($_ !~ /^\s*$/) && ($_ !~ /^\s*;/)) {
+ if (!/^\s*$/ && !/^\s*;/) {
$_ = "$entry\n$_";
$entryinserted = 1;
last;
@@ -2177,7 +2177,7 @@ sub addsection {
my @lines = split("\n", $filecontent);
local $_;
for (@lines) {
- if ($_ =~ /^\s*\[\s*$section\s*\]\s*$/) {
+ if (/^\s*\[\s*$section\s*\]\s*$/) {
# section already there, nothing to be done
return $filecontent;
}
@@ -2195,13 +2195,13 @@ sub removeentry {
$_ = "$_\n";
next if ($done);
if (!$sectionfound) {
- if ($_ =~ /^\s*\[\s*$section\s*\]\s*$/) {
+ if (/^\s*\[\s*$section\s*\]\s*$/) {
$sectionfound = 1;
}
} else {
- if ($_ =~ /^\s*\[.*\]\s*$/) { # Next section
+ if (/^\s*\[.*\]\s*$/) { # Next section
$done = 1;
- } elsif ($_ =~ /^\s*$entry/) {
+ } elsif (/^\s*$entry/) {
$_ = "";
$done = 1;
}
@@ -2220,12 +2220,12 @@ sub removesection {
$_ = "$_\n";
next if ($done);
if (!$sectionfound) {
- if ($_ =~ /^\s*\[\s*$section\s*\]\s*$/) {
+ if (/^\s*\[\s*$section\s*\]\s*$/) {
$_ = "";
$sectionfound = 1;
}
} else {
- if ($_ =~ /^\s*\[.*\]\s*$/) { # Next section
+ if (/^\s*\[.*\]\s*$/) { # Next section
$done = 1;
} else {
$_ = "";