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'
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
>>
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
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
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
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
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
...
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 {
>
>
&
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
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
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,
>
11 matches
Mail list logo