in reply to Passing variables into a subroutine
my (@array, ...) = ... [download]
Update: Other problems may emerge after solving this one because of the usage of prototypes.