Home >> perlfunctions >>Perl function: lcSyntax:lc STR lcReturns a lowercased version of EXPR. Opposite of Perl function uc. #!/usr/bin/perl use strict; my $str = "PERLHOME Perl tutorial"; my $lower=lc($t); print "Original string is:", $str, "\n"; print "Changed string is:", $lower;Output: PERLHOME Perl tutorial perlhome perl tutorialIf STR is missing, value stored in $_ is used by default. Perl functions
|
List of all perl functions Perl function : split Perl function: abs Perl function: chomp Perl function: chop Perl function: chr Perl function: crypt Perl function: eval Perl function: hex Perl function: lcfirst Perl function: length Perl function: oct Perl function: ord Perl function: shift
|