in reply to tr/<mixed string>/<UPPER STRING>/

How about simply ...

tr/a-z/A-Z/

The transliteration operator (tr) is designed to work with lists of characters, replacing the character in the search list with the corresponding character in the replacement list. Additionally a character range can be specified with a hyphen, such that tr/A-E/0-5/ is equivalent to tr/ABCDE/01234/ - See perlop for details.

 

Replies are listed 'Best First'.
Re: Re: tr/<mixed string>/<UPPER STRING>/
by curtisb (Monk) on Sep 26, 2002 at 14:31 UTC
    Thanks, that worked!
    I knew that I should use tr///, but the last time I used
    tr/a-z/A-Z/ it didn't work the way it was suppost to. This time it did.
    Thanks again
    Bobby
Re: Re: tr/<mixed string>/<UPPER STRING>/
by kryberg (Pilgrim) on Sep 26, 2002 at 15:29 UTC
    Ah, the beauty of perl.