wpearsall
Jan 5th, 2003, 02:57 PM
hey ya,
OK, how do i replace <CR> with \r\n in CGI?
I thought that
$Description = "This is <CR> LINE ONE <CR>LINE 2<CR> LINE THREE";
$Description =~ s/<CR>/\r\n/g;
should do it? (Seams like not though)
NE 1?
[oh btw this code:]
$input{'a_text'} = "Line\r\n1\r\n2\r\n3";
$input{'a_text'} =~ s/\r\n/<CR>/g;
makes it output to:
Line<CR>1<CR>2<CR>3
OK, how do i replace <CR> with \r\n in CGI?
I thought that
$Description = "This is <CR> LINE ONE <CR>LINE 2<CR> LINE THREE";
$Description =~ s/<CR>/\r\n/g;
should do it? (Seams like not though)
NE 1?
[oh btw this code:]
$input{'a_text'} = "Line\r\n1\r\n2\r\n3";
$input{'a_text'} =~ s/\r\n/<CR>/g;
makes it output to:
Line<CR>1<CR>2<CR>3