Perl Home
PERL Functions
© 2011 TutorialsPoint.COM
|
PERL lcfirst Function
Syntax
Definition and Usage
Returns the string EXPR or $_ with the first character lowercased.
Return Value
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
|
|

|
|
|