diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-07-24 10:23:21 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-07-24 10:23:21 +0000 |
commit | 7e5672eb837597a08dc886dc022f704be9b97665 (patch) | |
tree | 51aba798e9eb6501aa32cc1cfdbf4d759a031b3b /perl-install/timezone.pm | |
parent | 5d8a5663900537c6695f08692920d666f5ec9213 (diff) | |
download | drakx-backup-do-not-use-7e5672eb837597a08dc886dc022f704be9b97665.tar drakx-backup-do-not-use-7e5672eb837597a08dc886dc022f704be9b97665.tar.gz drakx-backup-do-not-use-7e5672eb837597a08dc886dc022f704be9b97665.tar.bz2 drakx-backup-do-not-use-7e5672eb837597a08dc886dc022f704be9b97665.tar.xz drakx-backup-do-not-use-7e5672eb837597a08dc886dc022f704be9b97665.zip |
generalize the use of chomp_ as the functional alternative to chomp (and works on lists)
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r-- | perl-install/timezone.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; $_ } <F>; + my @l = chomp_(<F>); close F or die "cannot list the available zoneinfos"; - @l; + sort @l; } sub read { |