my @elements = split //, 'Just another split on empty regex'; my $length = scalar @elements; # or here, just @elements