Mar 21, 2001, 12:35 AM
Post #1 of 2
CGI: ^M at the end of line, how to delete this ?
this is the result when i execute this script via CGI
this is the script:
$q = new CGI;
@a = $q->param ();
$p = $q->param($a);
open (FSFILE, ">/tmp/web_ar_fs_res$$");
printf FSFILE "$p" ;
system ("cat -v /tmp/web_ar_fs_res$$");
i try with binmode but this is the same result.
How to delete ^M (or have not this character) ?
ok , i found that on forum
$p =~ s/\r//g;
(This post was edited by Ruru_atwork on Mar 20, 2001, 11:56 PM)