dsalada has asked for the wisdom of the Perl Monks concerning the following question:
The output looks shows the string unchanged, but I was hoping it would look like this: Book::Instructional Material::Teaching Guide Any help would be greatly appreciated!$new_type = "BookInstructional MaterialTeaching Guide"; $new_type =~ s/([a-z])([A-Z])/$1::$2/g; print "$new_type\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding lowercase letters next to uppercase letters
by blakem (Monsignor) on Oct 17, 2001 at 23:51 UTC | |
|
(crazyinsomniac) Re: Finding lowercase letters next to uppercase letters
by crazyinsomniac (Prior) on Oct 18, 2001 at 03:41 UTC | |
|
Re: Finding lowercase letters next to uppercase letters
by runrig (Abbot) on Oct 18, 2001 at 03:55 UTC |