From 7e5672eb837597a08dc886dc022f704be9b97665 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 24 Jul 2001 10:23:21 +0000 Subject: generalize the use of chomp_ as the functional alternative to chomp (and works on lists) --- perl-install/timezone.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/timezone.pm') diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm index 7da47f135..1b45d243a 100644 --- a/perl-install/timezone.pm +++ b/perl-install/timezone.pm @@ -13,9 +13,9 @@ sub getTimeZones { my ($prefix) = @_; local *F; open F, "cd $prefix/usr/share/zoneinfo && find [A-Z]* -type f |"; - my @l = sort map { chop; $_ } ; + my @l = chomp_(); close F or die "cannot list the available zoneinfos"; - @l; + sort @l; } sub read { -- cgit v1.2.1