redhotpenguin has asked for the wisdom of the Perl Monks concerning the following question:
$string =~ s!\<(.)!\<uc($1)!g;
i.e. I want to turn <foo><bar>blitz</bar></foo> into <Foo><Bar>blitz</Bar></Foo>
TIA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Ucfirst on xml elements
by davido (Cardinal) on Aug 29, 2004 at 16:38 UTC | |
by ambrus (Abbot) on Aug 29, 2004 at 17:57 UTC | |
by redhotpenguin (Deacon) on Aug 29, 2004 at 16:45 UTC |