Re: The newline blues

2003-06-25 Thread Harry Putnam
"Charles K. Clarkson" <[EMAIL PROTECTED]> writes: > : ---> @chunk = ''; > > Should be: > > @chunk = (); Ahh ...yes. Thanks for the thorough explanation. [...] > Since you're adding all those newlines > back in, why take them out in the first > place? Nice code. Thanks. Abou

RE: The newline blues

2003-06-25 Thread Charles K. Clarkson
Harry Putnam <[EMAIL PROTECTED]> wrote: : : Where is this pesky newline coming from? : :if($collect_lines : && /^( +Folder:| Subject: |From |Message-[Ii][Dd])/){ : push @chunk,$_; :} :if(/^START/){ : $cnthits++; : $collect_lines = ''; : @rev_chunk =

The newline blues

2003-06-25 Thread Harry Putnam
Where is this pesky newline coming from? This script processes a custom procmail.log and prints a summary of activity of a stipulated number of processed messages. Working from the end of file toward the beginning by using `tac' I wanted a `--\n' delimiter between sections. As you see below this