Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
do { print "Enter Yes or No \n"; chomp($input = <>); if ($input eq 'yes') { print "Yes entered for system.\n"; } elsif($input eq 'no') { print "No entered for system.\n"; } } until ($input =~ /^yes$/ or $input =~ /^no$/);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: While loop
by particle (Vicar) on May 14, 2002 at 18:16 UTC | |
Re: While loop
by vladb (Vicar) on May 14, 2002 at 18:12 UTC | |
by Mr. Muskrat (Canon) on May 14, 2002 at 19:22 UTC | |
by Anonymous Monk on May 14, 2002 at 18:48 UTC | |
Re: While loop
by thelenm (Vicar) on May 14, 2002 at 18:15 UTC | |
Re: While loop
by mephit (Scribe) on May 14, 2002 at 19:59 UTC |