Perl Scalar

From GM-RKB
(Redirected from Perl Scalars)
Jump to navigation Jump to search

A Perl Scalar is a scalar data variable that is a Perl data structure.



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";