Output the initial in lowercase and uppercase : Case « String « Perl






Output the initial in lowercase and uppercase

    

while (<>) {
    print "Initial lowercase: " . lcfirst;
    print "Initial uppercase: " . ucfirst;
}

   
    
    
    
  








Related examples in the same category

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