programming-examples/perl/String/Convert all letters of $string to lowercase.pl
2019-11-15 12:59:38 +01:00

11 lines
197 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
my $string = "hello there\n";
print "The original string: ", 'hello there\n', "\n\n";
$string = lc( $string );
print "Lowercase: $string \n";