y
> Cc: beginners@perl.org
> Sent: Mon, November 8, 2010 2:32:13 PM
> Subject: Re: Chomp help...
>
> You could try doing this with a regex:
>
> $html_content =~ s/\n//g;
>
> This would look for any new-line ("\n") and replace it with nothing. The g
> at
> the e
Awsome, regex worked! My head was stuck on chomp...Thanks Sheppy.
From: Sheppy R
To: Bobby
Cc: beginners@perl.org
Sent: Mon, November 8, 2010 2:32:13 PM
Subject: Re: Chomp help...
You could try doing this with a regex:
$html_content =~ s/\n//g;
This would
You could try doing this with a regex:
$html_content =~ s/\n//g;
This would look for any new-line ("\n") and replace it with nothing. The g
at the end tells it to do this globally, so all instances of \n would be
removed.
On Mon, Nov 8, 2010 at 4:04 PM, Bobby wrote:
> Hi,
>
> I'm having issue
On 10-11-08 04:04 PM, Bobby wrote:
I'm having issues with printing out the content of a Database's HTML
text field; I wanted to chomp out the carriage returns of the
$html_content(see below) so that I could print it out all in one line
into a text file ($output). I've tried chomp() but it doesn't