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

[MacPerl] 32k document size limit



I've written a cgi Perl script that does the following with 
a text file (list of 288 college courses):

* receives a keyword from the user
* opens a text file, loads an array, closes the text file
* searches the array and identifies records matching the keyword
* returns matching records to the user

It all works pretty well. However when more than 32k of data 
match the user's request, then only 32k text is returned (the rest 
is clipped off at the end).

* I've allocated 2000k memory to Perl (and tried lots more)
* I've allocated  512k memory to the Perl Script (and tried lots more)

The 32k return text limit seems to be independent of memory allocation. 
The script runs fine when run without MacHTTP (it prints an entire 32k+ 
file directly to a window on my Mac. I only hit this 32k barrier when the 
Perl script sends stuff to MacHTTP.

Does anyone know what's going on and how I can get through this 32k barrier?

Macintosh IIci 8mb (RAM doubled to 16mb)
System 7.1
Perl 4.1.8
MacHTTP 2.2

Thanks,

Eric Muehling

ps   See Perl scripts working at this web site:
     http://july.uafsum.alaska.edu/catalog.html