Re: Change first character of a string into Caps

2002-02-09 Thread Dwalu Z. Khasu
On Sat, 9 Feb 2002, Rene Verharen wrote: =>Hi, => =>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; => =>This is not what I want. Can som

Re: Change first character of a string into Caps

2002-02-09 Thread Eric Pretorious
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 first character of a string into Caps

2002-02-09 Thread Rene Verharen
Hi, 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; This is not what I want. Can someone please point me in the right direction ? Thanks. K