Tutorials Point


  Perl Home

  PERL Functions

© 2011 TutorialsPoint.COM


  Home     References     About TP     Advertising  

PERL lcfirst Function



Syntax

lcfirst EXPR

lfirstc


Definition and Usage

Returns the string EXPR or $_ with the first character lowercased.

Return Value

    First character Lowercased

Example

Try out following example, copy and past this example into test.pl file and then verify the result:

#!/usr/bin/perl

$orig_string = "This is Test and CAPITAL";

$changed_string = lcfirst( $orig_string );

print "Changes String is : $changed_string\n";

It will produce following result

Changes String is : this is Test and CAPITAL



Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names