use strict; use warnings; use feature 'say'; my $s = "hello"; # length returns the number of characters say length $s;
length counts characters