while(defined($input = <>))) { chomp $input; if ($input eq 'yes') { print "Yes entered for system.\n"; last; } elsif ($input eq 'no') { print "No entered for system.\n"; last; } }
In reply to Re: While loop
by thelenm
in thread While loop
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |