in reply to Memory Leaks

I suppose I should comment here:

The problem was identified to be CGI.pm not cleaning up after itself when I used the $cgi=new CGI($1) line (which initializes the $cgi object to values contained in the $1 string).

At the end of the while loop, CGI did not properly clean up after itself. My final solution was to scrap the use of CGI.pm and write my own parameter extractor (since I only need the "d" and "s4" parameters).

Easy enough and magnitudes faster.


And some valid test data:

126.san-juan-01-02rs.pr.dial-access.att.net - - [01/Mar/2001:00:00:57 +-0500] "GET /netacgi/nph-brs?d=NKKU&op4=and&s4=%22chronic+rena l+insufficiecy%22&l=20&Sect1=LINK&Sect2=IMAGE&Sect3=HITOFF&p=1&u=%2Fsi +mple%2Fsimple.html&r=0&f=S HTTP/1.1" 200 - "http://chid.nih.go v/simple/simple.html" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; +AT&T WNS IE4.0)"