The number of characters in a string:

examples/uc.pl

use strict;
use warnings;
use 5.010;

my $hi = 'HeLlo';
my $hebrew = 'שלום';
my $arabic = 'سلام';
my $smiley = '😃';
say $hi;
say $hebrew;
say $arabic;
say $smiley;

say uc $hi;
say uc $hebrew;
say uc $arabic;
say uc $smiley;

See also the explanation in String functions: length, lc, uc, index, substr.

documentation