From: Larry G. <List@ISComp.com> - 2003-12-25 13:15:03
|
> -----Original Message----- > From: Jamie Cameron > > Are you perhaps setting the $/ variable somewhere in your > code? If set to undef, perl will read a whole file at once > with code like > > $data = <FH>; > > or the whole file into the first element of the array with code > like : > > @data = <FH>; No. I can actually force this code to read my procmaillog without a problem. It is only the maillog that I am having a problem with. I also have code like the following in reports-lib.pl and it works without a problem. # #### Week-to-Date Merlin/Procmail Log Report # elsif ($match_exp eq "procmaillog") { open(PLOG, $logfile); while (<PLOG>) { $output = 1; print &html_escape($_); } close (PLOG); } # I also tried to use a while loop instead of a foreach but I get the same results - as I would suspect. Thanks Jamie, Larry |