![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
There must be a long-established idiomatic and elegant perl way to do this -- that I haven't found. I need a statement like:
where $new properly reflects the case of the first letter of $old. Given $old="my"; $new="no"; this would transmogrify My perl is my life.into No perl is no life.(I can't include patterns in $new.)
thanks much -
In reply to Case-preserving substitutions by wasii
|
|