Perl function:
length value

Returns the length of the scalar value, in bytes. If no argument is used, length uses the magic variable $_.

length should not be used to find the size of arrays and hashes. Use the function scalar instead.

Back to Perl