Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

What is the function for determining the length of a particular string? I thought it was something like this example:
$a="abcdefg";
$cc=strlen($a);
In this case in this snippet $cc would have a value of of 7.
Any ideas? I could have sworn that I have done this before in Perl... and now just canot remember. Help!

Replies are listed 'Best First'.
Re: string length
by dreadpiratepeter (Priest) on Aug 06, 2002 at 21:04 UTC
    $cc = length($a)

    -pete
    "Pain heals. Chicks dig scars. Glory lasts forever."