Re: Chomp help...

2010-11-09 Thread Chandrashekar Bhat
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

Re: Chomp help...

2010-11-08 Thread Bobby
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

Re: Chomp help...

2010-11-08 Thread Sheppy R
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

Re: Chomp help...

2010-11-08 Thread Shawn H Corey
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