mike wrote:

This worked s/\s+$/;

One question will this only take out blank lines?
eg: if I have this line
anytext tabe space newline
will the non-printing characters be removed and the text be added to the
beginning of the next line?


This will only remove whitespace from the END of a line.


If you slurp the file in a one BIG line ... well, you
accomplished very little.  Removing s,\n,,; forces the whole
thing to become one text block.

My while statement in the other post forced line by line processing...

If you are still having trouble processing the file; maybe
this trick will slow it down to a reasonable speed:

http://backpan.cpan.org/authors/id/T/TO/TOMC/scripts/slowcat.gz

:)

--
_Sx_ http://youve-reached-the.endoftheinternet.org/ _____
perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | grep Martian

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to