Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: similar string matching

by hv (Prior)
on Jul 05, 2004 at 12:12 UTC ( [id://371863]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      # assuming $left sequence is the longer one
      my $len = length($right);
      my @matches = map {
        (substr($left, $_, $len) ^ $right) =~ tr/\0/\0/
      } 0 .. length($left) - $len;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://371863]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-19 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found