http://www.perlmonks.org?node_id=557818

egunnar has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks. I am running my code on a linux box and making a report for a windows machine. I am trying to get each line to have \r\n at the end of it. I've read perlform documentation and can't find anything on this. Is this possible? Thanks for your help. Regards,

Erik

Here is what I tried but it did not work.
#!/usr/bin/perl -w use strict; my $name = 'name'; my $home = "town\r\n"; binmode STDOUT; format STDOUT = @<<<<<<<<<<<<<<<<<< @<<<<<<<<<<<<<<<<< \r\n $name, $home . write STDOUT;