summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive/stdio.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-05 12:26:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-05 12:26:59 +0000
commit96279a0b9750c1d757b48c40cd1f17b5a60ea014 (patch)
treecd560f727a90ded832cfd5480f248848006f73d0 /perl-install/interactive/stdio.pm
parent3812fd80c231dba41da389d575547492c994552c (diff)
downloaddrakx-96279a0b9750c1d757b48c40cd1f17b5a60ea014.tar
drakx-96279a0b9750c1d757b48c40cd1f17b5a60ea014.tar.gz
drakx-96279a0b9750c1d757b48c40cd1f17b5a60ea014.tar.bz2
drakx-96279a0b9750c1d757b48c40cd1f17b5a60ea014.tar.xz
drakx-96279a0b9750c1d757b48c40cd1f17b5a60ea014.zip
use each_index instead of map_index when the return value is not used
Diffstat (limited to 'perl-install/interactive/stdio.pm')
-rw-r--r--perl-install/interactive/stdio.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/interactive/stdio.pm b/perl-install/interactive/stdio.pm
index 3c8e9cfb7..635adfb83 100644
--- a/perl-install/interactive/stdio.pm
+++ b/perl-install/interactive/stdio.pm
@@ -117,7 +117,7 @@ ask_fromW_begin:
$common->{title} and print "$common->{title}\n";
print map { "$_\n" } @{$common->{messages}};
- $predo_widget->($_) foreach (@$l);
+ $predo_widget->($_) foreach @$l;
if (listlength(@$l) > 30) {
my $ll = listlength(@$l);
print _("=> There are many things to choose from (%s).\n", $ll);
@@ -128,15 +128,15 @@ or just hit Enter to proceed.
Your choice? ");
my $i = readln();
if (check_it($i, $ll)) {
- map_index { $do_widget->($_, $::i) } grep_index { $::i >= $i-1 && $::i < $i+9 } @$l;
+ each_index { $do_widget->($_, $::i) } grep_index { $::i >= $i-1 && $::i < $i+9 } @$l;
goto ask_fromW_handle_verylonglist;
}
} else {
- map_index { $do_widget->($_, $::i) } @$l;
+ each_index { $do_widget->($_, $::i) } @$l;
}
my $lab;
- map_index { $labels[$::i] && (($lab = $format_label->($_)) ne $labels[$::i]) and print _("=> Notice, a label changed:\n%s", $lab) }
+ each_index { $labels[$::i] && (($lab = $format_label->($_)) ne $labels[$::i]) and print _("=> Notice, a label changed:\n%s", $lab) }
grep { $_->{type} eq 'label' } @$l;
my $i;