Another way to do it:
my $foo = "Hello WorldFoo BarPerl MonksSlash Dot"; print join (" \n", split (/(?<=[a-z]| )(?=[A-Z])/, $foo));
In reply to Re: Split without removing characters
by GrandFather
in thread Split without removing characters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |