in reply to An optimal way to induce CRLF using perlio

Hi Ron. Are you just asking how to substitute CRLF for each LF in the $message variable?
$message =~ s/\n/\r\n/g;

Replies are listed 'Best First'.
Re^2: An optimal way to induce CRLF using perlio
by perlron (Pilgrim) on Oct 26, 2014 at 21:48 UTC
    the requirement is like the message string has to be constructed from query parameters. so then i need to add newlines in my string..and then ship them off to the curl command.
    Do not wait to strike when the iron is hot! Make it hot by striking - WB Yeats