From 22ad938758373ec4e2f8490d62f2cdc237d50d7c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 11 Nov 2002 22:20:22 +0000 Subject: - replace ... =~ 'foo' with ... =~ /foo/ - remove unneeded parentheses for things like ... if (...) --- perl-install/interactive/stdio.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/interactive/stdio.pm') diff --git a/perl-install/interactive/stdio.pm b/perl-install/interactive/stdio.pm index 737b966f7..1952cc0e5 100644 --- a/perl-install/interactive/stdio.pm +++ b/perl-install/interactive/stdio.pm @@ -29,7 +29,7 @@ sub good_choice { defined $i and print N("Bad choice, try again\n"); print N("Your choice? (default %s) ", $def_s); $i = readln(); - } until (!$i || check_it($i, $max)); + } until !$i || check_it($i, $max); $i; } @@ -149,7 +149,7 @@ Your choice? "); defined $i and print N("Bad choice, try again\n"); print N("Your choice? (default %s) ", $common->{focus_cancel} ? $common->{cancel} : $common->{ok}); $i = readln() || ($common->{focus_cancel} ? "2" : "1"); - } until (check_it($i, 9)); + } until check_it($i, 9); $i == 9 and goto ask_fromW_begin; } else { $i = 1; -- cgit v1.2.1