You need to pass the array by reference rather than by value. This section of perlsub explains it better than I can.
In reply to Re: Passing multiple data types to a subroutine
by BrowserUk
in thread Passing multiple data types to a subroutine
by Hagbone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |