- length
- lc
- uc
- ucfirst
- lcfirst
String functions (length, lc, uc, index)
- length STRING - number of characters
- lc STRING - lower case
- uc STRING - upper case
- lcfirst STRING - lower case
- ucfirst STRING - upper case
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