What is string.lc() in Perl?
The lc() function converts a string to lowercase.
The following figure shows a visual representation of the lc() function.
Syntax
lc(string)
Parameter
As a parameter, the lc() function requires a string that is to be converted to lowercase.
Return value
The lc() function returns a string that is converted to lowercase.
If the
stringparameter is omitted, then it returns''.
Code
#stringprint "lc('EDUCATIVE') : ".lc('EDUCATIVE'). "\n";#string with numberprint "lc('EDUCATIVE09') : ".lc('EDUCATIVE09'). "\n";#string is omittedprint "lc() : ".lc(). "\n";