in reply to strlen like function in perl

Just another solution:
$length=$string=~y///c
Yet another solution:
$length = scalar split /|/,$string