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
In reply to Re: Puzzlement in Splitsville
by BrowserUk
in thread Puzzlement in Splitsville
by tlm
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |