$camel_case_string = 'SomeOtherString'; while ($camel_case_string =~ m/([A-Z][a-z]*)/g){ push(@camel_case_words,$1) } print "@camel_case_words";
Update: good point, Anonymous Monk. Changed the '+' to '*'.
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print
In reply to Re: Splitting on uppercase letters
by Cody Pendant
in thread Splitting on uppercase letters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |