summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-11-14 15:31:59 +0000
committerFrancois Pons <fpons@mandriva.com>2000-11-14 15:31:59 +0000
commit949a885497d3d05e4dc0dc20e52ecb758d9b677c (patch)
tree0e7a20d9c3694bc4c392ea420607b7cbacdf3814 /perl-install/modules.pm
parent01975efac2cb7e05fbe05ec3733ae904669a1e94 (diff)
downloaddrakx-backup-do-not-use-949a885497d3d05e4dc0dc20e52ecb758d9b677c.tar
drakx-backup-do-not-use-949a885497d3d05e4dc0dc20e52ecb758d9b677c.tar.gz
drakx-backup-do-not-use-949a885497d3d05e4dc0dc20e52ecb758d9b677c.tar.bz2
drakx-backup-do-not-use-949a885497d3d05e4dc0dc20e52ecb758d9b677c.tar.xz
drakx-backup-do-not-use-949a885497d3d05e4dc0dc20e52ecb758d9b677c.zip
removed foreach (<... which are eating memory
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 6e8c8a039..7178396ca 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -507,9 +507,9 @@ sub read_already_loaded() {
sub load_deps($) {
my ($file) = @_;
- local *F;
- open F, $file or log::l("error opening $file: $!"), return 0;
- foreach (<F>) {
+ local *F; open F, $file or log::l("error opening $file: $!"), return 0;
+ local $_;
+ while (<F>) {
my ($f, $deps) = split ':';
push @{$deps{$f}}, split ' ', $deps;
}