Yet Another (stupid) Way To Do It:
<kbd>--$string = "foobar"; $count = $string =~ s/(.)/$1/sg;
In reply to Re: Counting number of characters in a string
by OeufMayo
in thread Counting number of characters in a string
by jeffpflueger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |