in reply to Passing multiple data types to a subroutine
You need to pass the array by reference rather than by value. This section of perlsub explains it better than I can.