Convert all letters of $string1 to uppercase : Case « String « Perl






Convert all letters of $string1 to uppercase

    

#!/usr/bin/perl

use warnings;
use strict;

my $string = "hello there\n";
print "The original string: ", 'hello there\n', "\n\n";

$string = uc( $string );
print "Uppercase: $string";

   
    
    
    
  








Related examples in the same category

1.Convert all letters of $string to lowercase
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