Help for this page

Select Code to Download


  1. or download this
    if ( /^[brc]at$/ ) {  # match "bat", "rat", or "cat"
        print "It's an animal\n";
    ...
            print "... and it flies!\n";
        }
    }
    
  2. or download this
    if ( /^[brc]at$/ ) {
        print "It's an animal\n";
    ...
    if ( /^b/ ) {
        print "... and it flies!\n";
    }