loris has asked for the wisdom of the Perl Monks concerning the following question:
Hello RegExpers,
I know form the answers to Split: Having your capitals and not eating them that how to split a run-together word LikeThis using:
my @w = split(/(?=[A-Z])/,$s);but can I do something similar using:
$s =~ s/(?=[A-Z])/ /g; $s =~ s/^\s//g;
in a single line?
Thanks for your help,
|
---|