From 949a885497d3d05e4dc0dc20e52ecb758d9b677c Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Tue, 14 Nov 2000 15:31:59 +0000 Subject: removed foreach (<... which are eating memory --- perl-install/Xconfig.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/Xconfig.pm') diff --git a/perl-install/Xconfig.pm b/perl-install/Xconfig.pm index 585ed7247..350c7df33 100644 --- a/perl-install/Xconfig.pm +++ b/perl-install/Xconfig.pm @@ -40,9 +40,9 @@ sub getinfoFromXF86Config { $o->{card}{server} ||= $1 if readlink("$prefix/etc/X11/X") =~ /XF86_ (\w+)$/x; #- /x for perl2fcalls - local *F; - open F, "$prefix/etc/X11/XF86Config" or return {}; - foreach () { + local *F; open F, "$prefix/etc/X11/XF86Config" or return {}; + local $_; + while () { if (/^Section "Keyboard"/ .. /^EndSection/) { $o->{keyboard}{xkb_keymap} ||= $1 if /^\s*XkbLayout\s+"(.*?)"/; } elsif (/^Section "Pointer"/ .. /^EndSection/) { -- cgit v1.2.1