Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Finding repeat sequences.

by BrowserUk (Pope)
on Jun 18, 2013 at 19:59 UTC ( #1039642=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $s = 'aaaabaaaabaaaaabaaaab';;
    $s =~ m[(.+).*\1] and print $1;;
    aaaabaaaab
    
  2. or download this
    aaaabaaaabaaaaabaaaab
    aaaabaaaab aaaabaaaab
    1         ^2
    
  3. or download this
    $s = 'aaaabaaaabaaaaabaaaab';;
    $s =~ m[(.+)\1] and print $1;;
    aaaab
    
  4. or download this
    aaaabaaaabaaaaabaaaab
    aaaabaaaab aaaabaaaab
    1    2    ^3    4
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2014-12-23 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls