examples/scalars/length.pl
use 5.010;
use strict;
use warnings;

my $name = 'Foo Bar';
say length $name;                 # 7
say length "Hello World!\n";      # 13
say length 19;                    # 2