in reply to Need a little help appending lines

Thank you all very much for your quick help! I'm actually pulling the port numbers out of another file(which is a garbled mess), then wanting to create another file. I know my example is not the best, but the file I get the ports from is very small, as well as the output file. I needed to know how to do this:

print OUT "Address=",$array[0],"\n";

Everything is working now, thanks everyone for the cool examples!