Don't ask to ask, just ask | |
PerlMonks |
Re: (golf) Collapse repetitions within a stringby Jasper (Chaplain) |
on Jun 26, 2003 at 12:08 UTC ( [id://269205]=note: print w/replies, xml ) | Need Help?? |
just golfing yours: You don't need the brackets around the time(s), because any time it's less than two, you only print out one character. You were matching \w, so I didn't check for defined on $1, just $1, but it should give the same results. I think that's 75, not including switches. Jasper
In Section
Meditations
|
|