From 0e49b4b5057a47c9969610226e0d88c6e8ceea47 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 3 Dec 2002 14:12:09 +0000 Subject: do not use "local *F", use "my $F" or output() instead --- perl-install/timezone.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'perl-install/timezone.pm') diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm index 9c8d10521..be6899975 100644 --- a/perl-install/timezone.pm +++ b/perl-install/timezone.pm @@ -9,10 +9,9 @@ use log; sub getTimeZones { my ($prefix) = @_; - local *F; - open F, "cd $prefix/usr/share/zoneinfo && find [A-Z]* -type f |"; - my @l = chomp_(); - close F or die "cannot list the available zoneinfos"; + open(my $F, "cd $prefix/usr/share/zoneinfo && find [A-Z]* -type f |"); + my @l = chomp_(<$F>); + close $F or die "cannot list the available zoneinfos"; sort @l; } -- cgit v1.2.1