Re: ^M in $res->content

Gisle Aas (gisle@aas.no)
12 Oct 1999 19:35:24 +0200


RayG <rgoldber@eb.com> writes:

> On Tue, 12 Oct 1999, Gunardi -Viriyaguna- Wu wrote:
> 
> > Please help me, is there anyway to get rid of the ^M character? 
> > (preferebly without using any text-parsing/filter script)
> 
> before printing the content do:
> $res->content =~ s#\r##g;

That will not work even compile.  This works better.

  ${$r->content_ref} =~ s/\r//g;

Regards,
Gisle