programming-examples/perl/String/Using length function to check the length of a string.pl

9 lines
105 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
use strict;
my $song = '12345';
print 'length: ', length($song), "\n";