- or download this
$input ne 'good' && $input ne 'bad' && $input ne 'iffy'
- or download this
if ($input eq 'good') {print "..."}
elsif ($input eq 'bad') {print "..."}
elsif ($input eq 'iffy') {print "..."}
else {next}
last;
- or download this
print "Are you having/had a good, bad, or iffy day $name?: ";
while (my $input = <>) {
...
elsif ($input eq 'iffy') {print "..."; last}
print "Are you having/had a good, bad, or iffy day $name?: ";
}
- or download this
while (do {print "...."; defined (my $input = <>)}) {
if (...) {...; last}
elsif (...) {...; last}
elsif (...) {...; last}
}