Returns the size of a scalar:
$i = " " x 320; print " Length " . length( $i) . "\n";
Use the function scalar to find the length of an array and scalar keys to find the size of a hash.