summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-07-24 10:23:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-07-24 10:23:21 +0000
commit7e5672eb837597a08dc886dc022f704be9b97665 (patch)
tree51aba798e9eb6501aa32cc1cfdbf4d759a031b3b /perl-install/any.pm
parent5d8a5663900537c6695f08692920d666f5ec9213 (diff)
downloaddrakx-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/any.pm')
-rw-r--r--perl-install/any.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 793017880..444fed381 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -319,8 +319,7 @@ sub partitions_suggestions {
my @etc_pass_fields = qw(name pw uid gid realname home shell);
sub unpack_passwd {
my ($l) = @_;
- chomp $l;
- my %l; @l{@etc_pass_fields} = split ':', $l;
+ my %l; @l{@etc_pass_fields} = split ':', chomp_($l);
\%l;
}
sub pack_passwd {
@@ -373,7 +372,7 @@ sub writeandclean_ldsoconf {
sub shells {
my ($prefix) = @_;
- grep { -x "$prefix$_" } map { chomp; $_ } cat_("$prefix/etc/shells");
+ grep { -x "$prefix$_" } chomp_(cat_("$prefix/etc/shells"));
}
sub inspect {