Help for this page

Select Code to Download


  1. or download this
        $input ne 'good' && $input ne 'bad' && $input ne 'iffy'
    
  2. or download this
    if    ($input eq 'good') {print "..."}
    elsif ($input eq 'bad')  {print "..."}
    elsif ($input eq 'iffy') {print "..."}
    else {next}
    last;
    
  3. 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?: ";
    }
    
  4. or download this
    while (do {print "...."; defined (my $input = <>)}) {
        if    (...) {...; last}
        elsif (...) {...; last}
        elsif (...) {...; last}
    }