in reply to Writing to Spreadsheets in PERL...

I'm surprised nobody yet has mentioned the OP's reference to PERL.

On a lighter note, I agree with Corion. If you need to store a lot of data, a database is what you should be using. Having a cell with more than 30,000 characters is just screaming for problems.