Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a script that fires off a process. This process generates an HTML-formatted report of varying size, which gets stuffed into a scalar for submission to a database. I have a satisfactory strip() procedure that removes unecessary content prior to submission. What I would like to do is compress this even further if possible, such that the information in the scalar is compressed, submitted, and upon querying is uncompressed to its original state.
Intuitively I think gzip or some such algorithm, but the data is in a scalar and as far as I know there is no "file" data type supported for Postgres. Alternatively, there are several modules on CPAN that operate on scalar strings, such as Compress-LZF, in which case my question is, which is best?
All in all, what would people suggest?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: compressing text
by chromatic (Archbishop) on Apr 11, 2003 at 18:50 UTC | |
by Improv (Pilgrim) on Apr 11, 2003 at 18:55 UTC | |
by perrin (Chancellor) on Apr 11, 2003 at 19:08 UTC | |
by Anonymous Monk on Apr 11, 2003 at 19:16 UTC | |
by Improv (Pilgrim) on Apr 11, 2003 at 19:36 UTC | |
|
Re: compressing text
by perrin (Chancellor) on Apr 11, 2003 at 19:10 UTC | |
|
Re: compressing text
by Improv (Pilgrim) on Apr 11, 2003 at 18:49 UTC |