And the result is obviously not what I want, given that is removing the last letter and the initial. How do I accomplish the split w/o removing the letters? Thanks.my $foo = "Hello WorldFoo BarPerl MonksSlash Dot"; for ($foo) { for (split /[a-z][A-Z]/) { print "$_ \n"; } }
Retitled by davido from 'regex'.
In reply to Split without removing characters by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |