Re: Removing out new lines

2011-12-07 Thread C.DeRykus
On Dec 1, 6:43 am, whereismel...@gmail.com (Melvin) wrote: > Hi I have a file in the following format > > 111 > 222 > 333 > > Now I need to print the following output from the given input file as > 111 222 333 > The versatile File::Slurp can be a handy shortcut: # File::Slurp will croak if there'

Re: Removing out new lines

2011-12-06 Thread Melvin Simon
Thanks a lot Rob. "chomp" command did the job as you suggested. Also, to add I manually did it in gvim using the "j" in command mode. Thanks, Melvin On Sun, Dec 4, 2011 at 3:14 AM, Rob Dixon wrote: > On 01/12/2011 14:43, Melvin wrote: > >> Hi I have a file in the following format >> >> 111 >>

Re: Removing out new lines

2011-12-03 Thread John W. Krahn
Melvin wrote: Hi I have a file in the following format 111 222 333 Now I need to print the following output from the given input file as 111 222 333 $ echo "111 222 333" | perl -l040pe1 111 222 333 Is there a way I can do this in perl? I tried 2 ways (both ere essentially the same) 1) Par

Re: Removing out new lines

2011-12-03 Thread Rob Dixon
On 01/12/2011 14:43, Melvin wrote: Hi I have a file in the following format 111 222 333 Now I need to print the following output from the given input file as 111 222 333 Is there a way I can do this in perl? I tried 2 ways (both ere essentially the same) 1) Parsing the file and pushing the in

Removing out new lines

2011-12-03 Thread Melvin
Hi I have a file in the following format 111 222 333 Now I need to print the following output from the given input file as 111 222 333 Is there a way I can do this in perl? I tried 2 ways (both ere essentially the same) 1) Parsing the file and pushing the inputs to a string array. However since

Re: [SPAM DETECT] New lines are not removed using HTML::Strip::Whitespace module

2005-12-13 Thread Chris Devers
On Tue, 13 Dec 2005, Durai raj wrote: > Thanks for the reply. Is there any other perl modules or tools > available to remove the white space in HTML and JavaScript pages? Hang on -- why do you want to remove white space? To make serving content faster & consume less bandwidth? If so, you might

Re: [SPAM DETECT] New lines are not removed using HTML::Strip::Whitespace module

2005-12-13 Thread Xavier Noria
On Dec 13, 2005, at 10:41, Durai raj wrote: Hi, Thanks for the reply. Is there any other perl modules or tools available to remove the white space in HTML and JavaScript pages? Try HTML::Clean maybe. However, note that the docs say whitespaceRemove excess whitespace ...

Re: [SPAM DETECT] New lines are not removed using HTML::Strip::Whitespace module

2005-12-13 Thread Durai raj
from HTML pages using > HTML::Strip::Whitespace module. It removes the white space, but not > NEW LINES. > Here is my script: > > > use HTML::Strip::Whitespace qw(html_strip_whitespace); > my $html = q { > > &

Re: [SPAM DETECT] New lines are not removed using HTML::Strip::Whitespace module

2005-12-13 Thread Xavier Noria
On Dec 13, 2005, at 5:59, Durai raj wrote: I tried to remove white space and newlines from HTML pages using HTML::Strip::Whitespace module. It removes the white space, but not NEW LINES. Here is my script: use HTML::Strip::Whitespace qw

New lines are not removed using HTML::Strip::Whitespace module

2005-12-12 Thread Durai raj
Hi All, I tried to remove white space and newlines from HTML pages using HTML::Strip::Whitespace module. It removes the white space, but not NEW LINES. Here is my script: use HTML::Strip::Whitespace qw(html_strip_whitespace); my $html = q

Re: new lines

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 01:19 , Jimmy George wrote: [..] > # > print $q->header("text/html"), > $q->start_html("Environment check"), > $q->server_name, > $q->server_port, >