Welcome to the Monastery | |
PerlMonks |
Re^3: RegEx + vs. {1,}by tobyink (Canon) |
on Oct 10, 2012 at 22:08 UTC ( [id://998328]=note: print w/replies, xml ) | Need Help?? |
Indeed. There can never be a three character sequence in your string which occurs more frequently than a two character sequence. (Because the three character sequence contains two two character sequences.)
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|