in reply to Sharing a variable between subroutines
The best way would probably be to pass the array into the subroutines as a parameter.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg