develooper Front page | perl.beginners | Postings from October 2009

Compressed data embedded in script

Thread Previous | Thread Next
Bryan Harris
October 4, 2009 05:19
Compressed data embedded in script
Message ID:

I have about 60 MB of text data I want to include at the bottom of a script.

60 MB is too big for us, but compressed it would be probably only 3-6 MB
which is much better.  Is there any way to put gzipped data in the DATA
section of a script, and conveniently read it?

I'd also prefer that my script be able to survive getting passed through a
terminal -- is it hard to encode the data block (MIME perhaps?) so it will?


- Bryan

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About