Help for this page

Select Code to Download


  1. or download this
    sub compatible { 
        my ($s1, $s2) = @_; 
    ...
        !(($s1 | $s2)=~y/\0//); 
    } 
    print(compatible("_8__3__19", "48_____7_") ? "true\n" : "false\n");
    
  2. or download this
    sub compatible {
        y/_/\477/c, y/_/\0/ for my @m = @_;
    ...
            for [ qw[ _8__3__19 48____7__ ] ],  # compat
                    [ qw[ _8__3__19 4_8___7__ ] ],  # compat
                    [ qw[ _8__3__19 48_____7_ ] ];  # clash