programming-examples/perl/String/Get the length of a string.pl
2019-11-15 12:59:38 +01:00

7 lines
163 B
Perl

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