Perl Scalar
Jump to navigation
Jump to search
A Perl Scalar is a scalar data variable that is a Perl data structure.
- …
- Counter-Example(s):
- See: Perl Coding Notes.
Notes
length() and scalar variables
To determine the number of characters in an expression use the length() function:
my $name = 'Bob';
my $size = length($name);
print "$size\n";