[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

No Subject



>Ok. I'm just not seeing what I'm doing wrong here.
>
>The basic concept is, read in a Web log (MS IIS format :P ), and parse the
>data. None of the reports relies on cross-referencing data, so I'm just
>trying to separate it as I read it in.
>
>What happens is that the script just keeps reading data in until I get an
>"out of memory" error (even with MacPerl's memory partition set to 100+MB!)
>(The sample log file I'm using for testing is maybe a few thousand lines).
>
>I've included the problem code below. If anyone can see what I'm doing
>wrong, I'd greatly appreciate the help.
>
>Thanks,
>
>Bryan
>

I did a similar script and had to change the MacPerl input record seperator
to work with Windows Text files.

try adding the line below before reading the log file.


$/ = "\x0d\x0a"; # change line ending character for NT


Thanks
Bruce Harkness
<bharkness@oweb.com>
<bharkness@ogdenweb.com>



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch