Assign array variable to scalar variable
@array = (1, 2, 3); $variable = @array; print "\@array has $variable elements.";