diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-08-11 07:57:52 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-08-11 07:57:52 +0000 |
commit | 815e560840114d7c00db50192b825d27406df298 (patch) | |
tree | a0155870bf114b6343ed4002adcd811562a32280 /urpm/ldap.pm | |
parent | 446690cc92c337319cc6e385dcc0a7f12d5083ac (diff) | |
download | urpmi-815e560840114d7c00db50192b825d27406df298.tar urpmi-815e560840114d7c00db50192b825d27406df298.tar.gz urpmi-815e560840114d7c00db50192b825d27406df298.tar.bz2 urpmi-815e560840114d7c00db50192b825d27406df298.tar.xz urpmi-815e560840114d7c00db50192b825d27406df298.zip |
Localize $_ before magical while(<$file>) loops
Diffstat (limited to 'urpm/ldap.pm')
-rw-r--r-- | urpm/ldap.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm/ldap.pm b/urpm/ldap.pm index 34a387d3..e734c883 100644 --- a/urpm/ldap.pm +++ b/urpm/ldap.pm @@ -125,6 +125,7 @@ sub get_ldap_config_file($) { ); # TODO more verbose error ? open my $conffh, $file or return; + local $_; while (<$conffh>) { s/#.*//; s/^\s*//; |