Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Suffix-prefix matching done right

by tybalt89 (Monsignor)
on Nov 04, 2021 at 21:22 UTC ( [id://11138444]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
        ($1 ^ substr $y, 0, length $1) =~ tr!\0!!c <= $m ? '' : '(*FAIL)'
        })/ and print "$n:($-[1],@{[ length $1 ]})($x,$y)\n";
      }
    
  2. or download this
    1:(1,3)(abba,baaa)
    2:(3,1)(bbbb,aaba)
    ...
    8:(2,2)(baba,baab)
    9:(2,2)(aaba,baaa)
    10:(1,3)(bbab,bbba)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-16 19:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found