From: Larry G. <Li...@IS...> - 2003-12-29 15:41:30
|
Hi Jamie, > -----Original Message----- > From: Jamie Cameron > > > I also tried to use a while loop instead of a foreach but I get > > the same results - as I would suspect. > > So this problem only happens for a single log file (mailog), > and works for procmaillog without the code being changed? Perhaps > one of those files has lines ending with \r\n, while the other ends > with just \n Ok, I am the stupid one. I did reset the $/ variable. Since I have a custom procmaillog and I have custom reports, I put a custom record separator between the headers so I can treat the entire header as a record. I set it to something that would never match in maillog which is why maillog would never match in the foreach loop. I feel stupid for missing this but at least I am coming clean. All I needed to do is reset $/ equal to \n and I am in business. Sorry for wasting your time! --Larry |