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

Re: [MacPerl] 32k document size limit




On Mon, 11 Mar 1996, Eric Muehling wrote:

> 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?

I don't understand this limit thing either.  You mean MacPerl can't just 
print the whole thing straight out to the Web?

At <http://cadre.sjsu.edu/zoo/anr/schedule/> I have something similar 
that processes a file of 6,000 classes and returns hundreds or more in 
HTML and tables if you like. It prints the matching courses as it 
finds them--but on an SGI w/ UNIX.  Would this not work in MacPerl?