Why loop when you can just do it in one stop?
$camel_case_string = 'SomeOtherString'; @camel_case_words = $camel_case_string =~ /([A-Z][a-z]*)/g; print "@camel_case_words";
You seem to be looping for no reason.
Anonymously yours,
Anonymous Monk
In reply to Re: Re: Splitting on uppercase letters
by Anonymous Monk
in thread Splitting on uppercase letters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |