@computers = join("\n",@computers);
what do you think this line is doing? What you've done is join all the array elements of @computers and put them into one element. So when you chop, you've got all the things that used to be in the array as one string.