in reply to Counting number of characters in a string

Yet Another (stupid) Way To Do It:

$string = "foobar"; $count = $string =~ s/(.)/$1/sg;
<kbd>--
my $OeufMayo = new PerlMonger::Paris({http => 'paris.mongueurs.net'});</kbd>