in reply to Array issue

Use push @listOfPass, $pass to add each password to the end of the array or (less commonly used, except perhaps with @INC) unshift @listOfPass, $pass to add each to the beginning of the array.