in reply to strlen like function in perl

As others said already, your answer's the length() function, used thusly:
$x = length $string;

You might want to check out some of the resources linked from this node: For Beginners: Basic Information Resources (or, Where to Look Things Up).

andy.