|
|
| There's more than one way to do things | |
| PerlMonks |
Re^3: change [A-Z] to U, [a-z] to L with one regex?by hdb (Chaplain) |
| on Mar 20, 2013 at 08:27 UTC ( #1024475=note: print w/ replies, xml ) | Need Help?? |
|
Thanks for your comment. I did not realize that in tr you would not need [] and that they would be treated as characters in their own right. And indeed in my script a "Z" would be translated into "L". W/o the brackets it would work. I should read the manuals more often/carefully.
For every complex problem there is an answer that is clear, simple, and wrong. H. L. Mencken
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||