|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: Golf (Inspired): Repeated Phrasesby chipmunk (Parson) |
| on May 10, 2001 at 21:01 UTC ( #79476=note: print w/ replies, xml ) | Need Help?? |
|
Okay.... I was quite close with my original solution, but failed to fully test it. MeowChow pointed out the error in my approach; {$n,$m} will only match once, whereas I need it to match the whole range from $n to $m. So, I just needed to add another loop, and voila: So that's 83 characters long, with help from MeowChow's solution.
In Section
Meditations
|
|
||||||||||||||||||||