in reply to [untitled node, ID 150556]
As for generating a newline \n should be sufficient - Perl will make it a newline for you. Since operating systems differ on what a newline is, using \n will make your program more portable.