From: Larry G. <Li...@IS...> - 2003-12-23 21:16:01
|
I hope I can both articulate the problem and that this is just something I am overlooking. I have a report library for a module. In a specific section, it parses /var/log looking for maillog*. I have no problem accessing the files and reading them. However, after copying the file to an array, the array appears to have no input record separators. The foreach control structure that should iterate through each line of the log only makes one pass. The odd thing is that I can take the exact script, make it stand alone and use a print statement that utilizing backtick assignment from the same location and it will iterate through the file and provide the appropriate output. Additionally, I can call the stand alone script from the shell and it provides the appropriate output. I am not using any external modules. This simply opens the file, parses it, does some math, and outputs the result. Am I doing something wrong? Can anyone help me with this? Thanks and Regards, Larry |