lc Function in Perl
What is lc Function in Perl?
Explanation
The lc function is used to convert a whole string into lower case.
Syntax:
lc EXPR
lc
In the above syntax, lc() function takes a "string" or a variable as the argument.
Example :
#! C:programfilesperlbinperl
print "content-type: text/htmlnn";
$string = "ABVP";
$string2 = lc($string);
print "Lower case string: $string2n";
Result :
Lower case string: abvp
In the above example the string "ABVP" is converted to lowercase using the function lc().