Help for this page

Select Code to Download


  1. or download this
    if ($choice ne 'a', 'r', 'o', 'd', 'e') {
         print "Invalid choice, TRY AGAIN!\n";
    }
    
  2. or download this
    # Very explicit:
    if ($choice ne 'a' && $choice ne 'r' && $choice ne 'o' && $choice ne '
    +d' && $choice ne 'e') {
    ...
         print "Invalid choice, TRY AGAIN!\n";
    }