Using length function to check the length of a string
#!/usr/bin/perl -w use strict; my $song = '12345'; print 'length: ', length($song), "\n";