in reply to Puzzlement in Splitsville
In response to BrowserUk's question, yes order matters.
I guess you could do the FP thing:
sub oddEls; sub oddEls{ @_ ? (( shift, shift )[ 0 ], oddEls @_) : () } print oddEls 'aaabbcddddaee' =~ /((.)\2*)/g;; aaa bb c dddd a ee
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Puzzlement in Splitsville
by Anonymous Monk on Jun 20, 2005 at 10:56 UTC | |
by BrowserUk (Patriarch) on Jun 20, 2005 at 11:16 UTC |