On Sat, 9 Feb 2002, Rene Verharen wrote: > I need to change the first (and ONLY the first) character of a string into > Caps. I know how to change the whole string into Caps by using this : > > my $in = "this is my text"; > $out = uc $in; Rene:
You're close. Use ucfirst() instead. To change the capitalization of several words (e.g., change 'eRic preTorioUs' -> 'Eric Pretorious') try... $foo =~ /(\w+)/\u\L$1/g; -- Eric P. Los Gatos, CA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]