My code in Re^3: string functions
's original thread) gets to the same results - so we have both understood our fellow monk incorrectly (?) but in the same way :)
Update: So, valavanp, it would really help if you could spell out for us step by step how you arrive at your expected values ...
Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.