in reply to Golf (Inspired): Repeated Phrases
So, I just needed to add another loop, and voila:
So that's 83 characters long, with help from MeowChow's solution.sub repeated { ($_,$t,$n,$m,@p)=@_; for$i($n..$m){$t=~$1&&push@p,$&while/\b(?=((\w+\b ?){$i}))/g}@p }
|
---|