my $foo = "Hello WorldFoo BarPerl MonksSlash Dot"; for ($foo) { s/([a-z])([A-Z])/$1|$2/g; for (split /\|/ ) { print "$_ \n"; } }
In reply to Re: Split without removing characters
by Transient
in thread Split without removing characters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |