tr/a-z/A-Z/ : tr « Regular Expression « Perl






tr/a-z/A-Z/

   

#!/usr/bin/perl -w

while (<>) {
    tr/a-z/A-Z/;
    print;
}

   
    
    
  








Related examples in the same category

1.Counting using tr.
2.$text =~ tr/a-z/d-za-c/;
3.$text =~ tr/d-za-c/a-z/;
4.Using tr to count the occurrences of specific characters.
5.Using tr to retrieve the length of a string.
6.tr/i/o/;
7.tr/o/i/;