print join "\n", @out;
の方がわかり安い