in reply to Reading an array with a single value (My 2nd completed script!)
Whenever you assign a complete array to a scalar variable, e.g. my $foo = @baz; , the variable $foo will get the length or size of the array.
Essentially, your scalar was getting the number of arguments passed to your subroutine.
higle