#!/usr/bin/perl my @list = qw(helloWorld JohnDoe);for (@list) { s/(?<!^)(?=[A-Z])/ /g; print $_ . $/;}
Standard input is empty
hello World John Doe
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!