Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $abc =~ tr/AB/\0/c;
    
    print +(($abc & $_) eq $abc) ? "$_: yes\n" : "$_: no\n" for $yes, $no1
    +, $no2;
    
  2. or download this
    AABABAABABABAB: yes
    ABBABAABABABAB: no
    ABBABAABABAB: no