programming-examples/perl/String/Only change first letter to lowercase.pl
2019-11-15 12:59:38 +01:00

12 lines
228 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
my $string = "hello there\n";
print "The original string: ", 'hello there\n', "\n\n";
$string = lcfirst( $string );
print "First letter changed to lowercase: $string";