diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 12:40:19 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-04 12:40:19 +0000 |
commit | e81614106311688a1932251f23ac42ad04ada4fe (patch) | |
tree | 5644b49fb23e5ee78b6283a8b2b8c2194d1711fc /perl-install/modules.pm | |
parent | be575c0c81a3a2dc6b62abc220bdbc3f5aec09f9 (diff) | |
download | drakx-e81614106311688a1932251f23ac42ad04ada4fe.tar drakx-e81614106311688a1932251f23ac42ad04ada4fe.tar.gz drakx-e81614106311688a1932251f23ac42ad04ada4fe.tar.bz2 drakx-e81614106311688a1932251f23ac42ad04ada4fe.tar.xz drakx-e81614106311688a1932251f23ac42ad04ada4fe.zip |
do not use "local *F"
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r-- | perl-install/modules.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 7733eb582..96bae97ac 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -246,12 +246,11 @@ sub write_conf { my $written = read_conf($file); - local *F; - open F, ">> $file" or die("cannot write module config file $file: $!\n"); + open(my $F, ">> $file") or die("cannot write module config file $file: $!\n"); while (my ($mod, $h) = each %conf) { while (my ($type, $v) = each %$h) { my $v2 = join(' ', uniq(deref($v))); - print F "$type $mod $v2\n" + print $F "$type $mod $v2\n" if $v2 && !$written->{$mod}{$type}; } } |