go ahead... be a heretic | |
PerlMonks |
Re: Re: Search for a character in CAPSby dvergin (Monsignor) |
on Mar 07, 2002 at 16:58 UTC ( [id://150057]=note: print w/replies, xml ) | Need Help?? |
You did not test your code. The character matched by the
dot is being lost in the replacement.
The following snippet:
produces: Per Beginne Perl To make your approach work, you would need: $agent =~ s/(.)([A-Z])/$1 $2/g;
In Section
Seekers of Perl Wisdom
|
|