Home >> perlfunctions >>Perl function: lcfirstSyntax:lcfirst EXPR lcfirstThe first letter of the EXPR is converted to lower case and the rest of the string is returned as it is. Example: $str = "Test String"; $new_str = lcfirst $str; print "Original string is:", $str, "\n"; print "Changed string is:", $new_str;Output: Original string is: Test String Changed string is: test StringIf EXPR is missing, value stored in $_ is used. 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: lc Perl function: length Perl function: oct Perl function: ord Perl function: shift
|