1. Perl
  2. builtin functions
  3. here

lc function - convert uppercase to lowercase

You can use the lc function to convert from uppercase to lowercase . The lc function converts each character of the argument to lowercase. If the character cannot be converted, the character given as an argument is returned as it is.

my $str = lc "BBB";

lc function programming example

This is a programming example to convert from uppercase to lowercase with the lc function.

use strict;
use warnings;

# Conversion from uppercase "BBB" to lowercase "bbb"
my $str = lc "BBB";

print "$str\n";

Output result

bbb

Related information of lc function

Related information for the lc function.

Related Informatrion