have PHP code, how to do same in CGI?

Hi,
Does anyone know what code I can use in CGI that does the same thing as this does in PHP

$message = preg_replace("/\r\n/", "\n", $message);
$message = "$message";

I need to do this to fix the double spacing / formating problem i'm having with a CGI script.

 

 

 

 

Top