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

Re: [MacPerl] 32k document size limit



At 9:49 PM 3/11/96, 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

I've written something along the same lines, with a few differences.  It

* receives a keyword from the user
* opens a tab-delimited text file (such as an Excel text file) and searches
  for matching lines (it doesn't read it into an array)
* If it finds matches, it opens a file called header.html and prints it.  
  Then it prints all the matches in Netscape table format (the first line of
  the text file becomes the table header).  Then it opens a file called
  footer.html and prints it.

This won't help with your problem, because Netscape can't deal with large tables--the amount of RAM it takes to open a table is about 50 times the size of the table.  Really.  Look at http://www.csua.berkeley.edu/~tom/passwd.html; that's a 295K table, and you'll have to give Netscape something like 20 megs of RAM to open it.

But, if anyone's interested in my MacPerl thing, it's available at http://ls.berkeley.edu/LSCR/Tech/SearchList.sea.hqx
We're using it to provide search capabilities for a couple of storeroom inventory databases.  

---
Tom Holub (tom_holub@ls.berkeley.edu)
Letters & Sciences Computer Resources
455 LSA (510-642-9069)