in reply to Re: Pass array, then clear
in thread Pass array, then clear

Do you not use chomp?