Convert input to lowercase and uppercase : Case « String « Perl






Convert input to lowercase and uppercase

    

while (<>) {
    print "Here's what you typed lowercased: " . lc . "\n";
    print "Here's what you typed uppercased: " . uc . "\n";
}

   
    
    
    
  








Related examples in the same category

1.Convert all letters of $string to lowercase
2.Convert all letters of $string1 to uppercase
3.Lower and upper case
4.Output the initial in lowercase and uppercase
5.Convert mixed-case input