Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hi i would like to know how to convert a string to uppercase letters. For example
my $string = "I_NEED_(HELP)";
I would like to convert it to "I_need_help", i know to convert uppercase letter a code would be $string =~ s/([^_]+)/\u\L$1/g; But how i can't seemed to convert the HELP.
Code tags and formatting added by davido.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do i convert uppercase in a bracket.
by Animator (Hermit) on May 06, 2005 at 12:54 UTC | |
by Anonymous Monk on May 06, 2005 at 13:06 UTC | |
by reasonablekeith (Deacon) on May 06, 2005 at 13:23 UTC | |
by Anonymous Monk on May 06, 2005 at 13:37 UTC | |
by Fletch (Bishop) on May 06, 2005 at 13:10 UTC |