programming-examples/perl/String/Get the length of a string.pl

7 lines
163 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!C:/perl/bin
$stringvalue = "Perl is a great language";
$stringlength = length($stringvalue);
print "\n\nThe length of the string is: $stringlength\n\n";