Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Find repeated patterns in strings

by tlm (Prior)
on Aug 27, 2005 at 14:31 UTC ( [id://487150]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for (0..($strLen-1))
    
  2. or download this
    for ( 0..$strLen/2 )
    
  3. or download this
    for (0..($strLen - 1))
      {
    ...
      return wantarray  ? ($cycleLen, substr $str, 0, $cycleLen)
                        : $cycleLen if $+[0] == $strLen;
      }
    
  4. or download this
    for ( 1..$strLen/2 )
      {
    ...
      return wantarray  ? ($_, substr $str, 0, $_) : $_
        if $copy eq $str;
      }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found