Mega Code Archive

 
Categories / Perl / String
 

Get the length of a string

#!C:/perl/bin $stringvalue = "Perl is a great language"; $stringlength = length($stringvalue); print "\n\nThe length of the string is: $stringlength\n\n";