Help for this page

Select Code to Download


  1. or download this
    sub compatible { 
        my ($s1, $s2) = @_; 
    ...
            $s1=~/\G\z/ or $s2=~/\G\z/; 
        1; } 
    print(compatible("_8__3__19", "4_8___7__") ? "true\n" : "false\n");
    
  2. or download this
    sub compatible {
        my ($s1, $s2) = @_;
    ...
            for [ qw[ _8__3__19 48____7__ ] ],  # compat
                    [ qw[ _8__3__19 4_8___7__ ] ],  # compat
                    [ qw[ _8__3__19 48_____7_ ] ];  # clash
    
  3. or download this
    sub compatible {
        my ($s1, $s2) = @_;
    ...
                    [ qw[ __8_3__19 48____7__ ] ],  # clash
                    [ qw[ __8_3__19 84____7__ ] ],  # clash
                    [ qw[ _8__3__19 48_____7_ ] ];  # clash