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

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

heredoc read the LF ( \n ) , but dont parse / stores the Carriage return ( \r )

how can i force heredoc to read and store carriers return ( \r ) ?

=====================added before======================


i have a pdf file / binary inside my perl script using heredoc
has 40 Carriage returns, i can search on VI, i see the ^M
but when i print to a file i lose all Carriage returns..
i'm assuming is a problem of heredoc