I have a Perl script that i's called by a Php function.
During the call i need to pass as arguments Header, Subject, Body.
But as we know Body can contain "new line" char for example:
Hello Mr x,
this is just a test
Normally we have two new line here.
So when i call the script using system() function :
system("perl /var/www/cgi-bin/daemon.pl $Header $Subject $body", $Res);
The body content will have just
Hello Mr x,
The result that i'am looking for is to have the possibility to pass the new line to perl and recieve the message exactly as is written.