diff options
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r-- | perl-install/timezone.pm | 7 |
1 files changed, 3 insertions, 4 deletions
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_(<F>); - 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; } |