Replace this line:
> $body=~[what goes here?]
> with this:
> $body=~ s/\n/\n/g;
> or this:
> $body=~ s/\n//g;
>
> Do either of these do what you intend?
>
> Regards,
> - Robert
>
> -
>
> At 04:44 PM 9/7/2001 -0700, Ryan Kane wrote:
> [...]
> >
I have a form that submits a textarea to a perl script, which sets that to
$body. Unfortunately, if the text has two paragraphs (ie blank line between
them) it will show up with the pesky ^m. I'm trying to display the entry in
a formatted html page, so I would need to make it so the $body variab
I have done a few SMALL and minor projects with PERL, and this will be my
first time experimenting with CGI. With a lot of guidance from O'Reilly on
this, I came up with the following script:
#!/usr/local/bin/perl
&parse_form_data (*FORM);
sub parse_form_data
{
local (*FORM) = @_;
local ($quer