Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    if ( substr($left,-$length) eq substr($right,0,$length) ) {
        print "Match!\n";
    }
    
  2. or download this
    my $intersect = substr($left,-$length);
    
    ...
        print "matched again!\n";
    }