KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a string, $string = 'AbCdEf'; and I want to use the tr function to convert all the uppercase letters to lower case and all the lower case to upper case.... at the same time. I basically just want to reverse it to become. aBcDeF I came up with this line, but I'm not sure how to modify it to do what I want. How can I do it? $string=~ tr/A-Z/a-z/;
Tags (comma-separated)
Save Edits
Cancel