uc Function in Perl
What is uc Function in Perl?
Explanation
The uc function is used to convert a string into upper case.
Syntax:
uc EXPR
uc
In the above syntax, uc() function takes a "string" as the argument.
Example :
#! C:programfilesperlbinperl
print "content-type: text/htmlnn";
$string = "howareyou";
$string2 = uc($string);
print "Upper case string: $string2n";
Result :
Upper case string: HOWAREYOU
In the above uc Function example the string "howareyou" is converted to upper case "HOWAREYOU".