Re: [Boston.pm] Compression without temp file

2004-02-13 Thread Richard Morse
On 12 Feb 2004, at 10:18 PM, Sean Quinlan wrote: Date: 13 February 2004 08:14:59 AM EST Subject: ATT3259322.txt Hi! For some reason, all of your posts have always arrived to me as attachments -- never in the body of the email. I'm using Apple's Mail client with OSX 10.3.2. Do you have any

[Boston.pm] Compression without temp file

2004-02-12 Thread Sean Quinlan
I'm trying to find a way to compress large text strings (genomes) for storing in a database. I'd really prefer to avoid using temp files if possible. Not so much for loading the data, but I'm hoping to use the same methodology on the occasion I need to decompress and use that data. I searched

Re: [Boston.pm] Compression without temp file

2004-02-12 Thread J. Wren Hunt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sean Quinlan wrote: | I'm trying to find a way to compress large text strings (genomes) for | storing in a database. I'd really prefer to avoid using temp files if | possible. Not so much for loading the data, but I'm hoping to use the | same

Re: [Boston.pm] Compression without temp file

2004-02-12 Thread Sean Quinlan
On Thu, 2004-02-12 at 19:37, Chris Devers wrote: I assume you tried CPAN? Of course (and um, I mention that in the email). http://search.cpan.org/search?query=gzipmode=all First hit is PerlIO::gzip, which looks promising... Yes, I skimmed over that one. However I'm trying to find a way to

Re: [Boston.pm] Compression without temp file

2004-02-12 Thread Jeremy Muhlich
On Thu, 2004-02-12 at 19:24, J. Wren Hunt wrote: Or you might try Compress::Zlib (file-based). Compress::Zlib is actually NOT file based. It operates on scalars in memory. Oh, and Sean, have a look at bioperl before you get too deep in your project: http://bioperl.org/ -- Jeremy

Re: [Boston.pm] Compression without temp file

2004-02-12 Thread Gyepi SAM
On Thu, 2004-02-12 at 19:37, Chris Devers wrote: I assume you tried CPAN?=20 First hit is PerlIO::gzip, which looks promising... Yes, I skimmed over that one. However I'm trying to find a way to do it without using files, which PerlIO::gzip seems to be doing. Yes, it does use files, but

Re: [Boston.pm] Compression without temp file

2004-02-12 Thread Sean Quinlan
On Thu, 2004-02-12 at 20:18, Gyepi SAM wrote: Yes, it does use files, but newish perls support the concept of in-memory files. So the PerlIO::gzip example becomes: use PerlIO::gzip; my $string; open FOO, :gzip, \$string or die $!; print FOO 'blah blah blah'; close FOO; print

Re: [Boston.pm] Compression without temp file

2004-02-12 Thread Uri Guttman
SQ == Sean Quinlan [EMAIL PROTECTED] writes: SQ I searched CPAN but didn't find anything that appeared to provide SQ that functionality. I've also struggled with opening a pipe to SQ gzip; it compresses fine but I haven't figured out a way to SQ capture gzips output, which it forces to

Re: [Boston.pm] Compression without temp file

2004-02-12 Thread Gyepi SAM
On Thu, Feb 12, 2004 at 08:51:43PM -0500, Sean Quinlan wrote: On Thu, 2004-02-12 at 20:18, Gyepi SAM wrote: Thanks Gyepi! Unfortunately, while this did not throw any errors, it also did not produce any output? I just installed PerlIO::gzip so I could test the example and it works for me, so it

Re: [Boston.pm] Compression without temp file

2004-02-12 Thread Sean Quinlan
On Thu, 2004-02-12 at 19:26, Jeremy Muhlich wrote: Check out Compress::Zlib . This works fine, and I've got a first working version completed. Thanks everyone! -- Sean Quinlan [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part

Re: [Boston.pm] Compression without temp file

2004-02-12 Thread Sean Quinlan
On Thu, 2004-02-12 at 21:21, Gyepi SAM wrote: I just installed PerlIO::gzip so I could test the example and it works for me, so it must be you or your system ;) Was your perl built with perlio? perl -V|grep io should produce at this something like this: useperlio=define

Re: [Boston.pm] Compression without temp file

2004-02-12 Thread Chris Devers
On Thu, 12 Feb 2004, Sean Quinlan wrote: On Thu, 2004-02-12 at 19:37, Chris Devers wrote: I assume you tried CPAN? Of course (and um, I mention that in the email). Err, so you did. Note to self: read carefully before impulsive replies... :-/ -- Chris Devers