Subject: | [PATCH] CGI.pm (init): do not clobber $_ |
Date: | Sun, 25 Feb 2007 00:36:35 +0300 |
To: | bug-cgi.pm [...] rt.cpan.org |
From: | Alexey Tourbin <at [...] altlinux.ru> |
---
CGI.pm | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/CGI.pm b/CGI.pm
index 96232da..b87f178 100644
--- a/CGI.pm
+++ b/CGI.pm
@@ -559,6 +559,7 @@ sub init {
}
if (defined($fh) && ($fh ne '')) {
+ local $_;
while (<$fh>) {
chomp;
last if /^=/;
@@ -574,6 +575,7 @@ sub init {
}
if (defined($fh) && ($fh ne '')) {
+ local $_;
while (<$fh>) {
chomp;
last if /^=/;
--
1.5.0.1.GIT