in reply to Re^4: Global symbol requires explicit package name
in thread Global symbol requires explicit package name
Yes, but you can still use an ArrayRef, with the square brackets:
But I agree with you, if you don't pass too many arguments, you should use an Array instead of an ArrayRef.scalar_and_array_sub($foo, $bar, [@values[1..5]]); scalar_and_array_sub($foo, $bar, [$value1, $value2, $value3]); scalar_and_array_sub($foo, $bar, [split(/\s/, $string)]);
Testing never proves the absence of faults, it only shows their presence.
-- greengaroo
In Section
Seekers of Perl Wisdom