in reply to Re: Changing case on a word boundary
in thread Changing case on a word boundary

Thanks, Dan.

I think I have gone from CRS to full blown CRAFT.

It is very frustrating when you remember doing something and you can't remember how.

Here is another solution (very similar to yours) that I was given over on the Chatterbox.

	$str="YOSEMITE SAM";
	$str=~ s/(A-Z+)/\L\u$1/g;

The only difference of course being the definition of a " word" as you intimated in your post.


Peter L. BergholdBrewer of Belgian Ales
Peter@Berghold.Netwww.berghold.net
Unix Professional
  • Comment on Re: Re: Changing case on a word boundary