Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Golf (Inspired): Repeated Phrases

by MeowChow (Vicar)
on May 10, 2001 at 20:40 UTC ( #79466=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @l = repeated('this dog a round', 'this dog a pound', 1, 3);
    @l = repeated('this dog a round', 'this dog a pound', 1, 4);
    
  2. or download this
    sub repeated {
    ($s,$_,$m,$n)=@_;my@p;for$i($m..$n){$s=~$1&&push@p,$&while/\b(?=((\w+\
    +b ?){$i}))/g}@p
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://79466]
help
Chatterbox?
[hippo]: I always wonder how well the Asterix books work in other languages given that maybe 80% of the humour is some sort of word-play. How far do the translations differ?
[karlgoethebier]: hippo: Study the sources ; -) http://www.asterix .com/die-buecher/ die-asterix- mundart-reihe/
[choroba]: Perl to the rescue!
[Corion]: hippo: At least for the German translation, the wordplay is translated as well

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-05-24 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?