in reply to how can I collect x many elements from an array?
Use an array slice.
($x,@y[0..32],$z) = function();
In Section
Seekers of Perl Wisdom
in reply to how can I collect x many elements from an array?
($x,@y[0..32],$z) = function();