in reply to Split without removing characters
my $foo = "Hello WorldFoo BarPerl MonksSlash Dot"; for ($foo) { s/([a-z])([A-Z])/$1|$2/g; for (split /\|/ ) { print "$_ \n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Split without removing characters
by cmeyer (Pilgrim) on Jun 17, 2005 at 19:57 UTC | |
by Transient (Hermit) on Jun 17, 2005 at 20:05 UTC | |
by monarch (Priest) on Jun 18, 2005 at 15:15 UTC | |
by cmeyer (Pilgrim) on Jun 20, 2005 at 18:35 UTC |