S
sid
I need to compress parts of a file, say some sections of an xml file
while leaving others as ASCII on the ouput stream. I took the deflate
example from cpan and started gathering all lines of a section in a
string and then doing one deflate, ouput, flush and output the
compressed section. But this doesn't seem to be working. I am seeing
"use of uninitialized values" warnings and the final output file
doesn't look right. I would see some compressed data then a whole bunch
of xml without any compressed data in between and so forth. The
compress method has a horrible performance. It actually made the file
much bigger. Hence I only want to use the deflate method. It works fine
on the whole file. But I want to use it on sections of a file. Are
there examples that someone can point me to?
thanks
SS
while leaving others as ASCII on the ouput stream. I took the deflate
example from cpan and started gathering all lines of a section in a
string and then doing one deflate, ouput, flush and output the
compressed section. But this doesn't seem to be working. I am seeing
"use of uninitialized values" warnings and the final output file
doesn't look right. I would see some compressed data then a whole bunch
of xml without any compressed data in between and so forth. The
compress method has a horrible performance. It actually made the file
much bigger. Hence I only want to use the deflate method. It works fine
on the whole file. But I want to use it on sections of a file. Are
there examples that someone can point me to?
thanks
SS