Simple. Do something like
while ( <STDIN> ) { chomp($input = $_); if ( $input =~ /^okay\b/i ) { print "Y" } } # script continues here when STDIN is exhausted
In reply to Re: trying to get a loop to redo
by dws
in thread trying to get a loop to redo
by ddrumguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |