Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Reading an array with a single value (My 2nd completed script!)by higle (Chaplain) |
on Oct 01, 2001 at 17:59 UTC ( [id://115870]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|