Convert all letters of $string to lowercase : Case « String « Perl






Convert all letters of $string to lowercase

    

#!/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";

   
    
    
    
  








Related examples in the same category

1.Convert all letters of $string1 to uppercase
2.Convert input to lowercase and uppercase
3.Lower and upper case
4.Output the initial in lowercase and uppercase
5.Convert mixed-case input