12 lines
235 B
Perl
12 lines
235 B
Perl
#!/usr/bin/perl
|
|
|
|
use warnings;
|
|
use strict;
|
|
|
|
my $string = "hello there\n";
|
|
print "The original string: ", 'hello there\n', "\n\n";
|
|
|
|
my $length = length( $string );
|
|
print "The length of \$string (default) is: $length \n";
|
|
|
|
|