Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2014-09-30 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (378 votes), past polls