Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        if ($_ =~ /qu(?!it)/) { print ("found <$_>\n"); }
        else { print ("no match for <$_>\n"); }
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
        if ($_ =~ /gu(?!gu)/) { print ("found <$_>\n"); }
        else { print ("no match for <$_>\n"); }
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
    $result = ($cnt eq 4? ">> correct result" : ">> wrong result");
    print "end second loop <$cnt> is $result\n";
    print ">>pgm ended\n";