Hrunting has asked for the wisdom of the Perl Monks concerning the following question:
First off, I don't even know if that will work, not really understanding how Archive::Tar itself works. When I try to pass \*STDOUT to Archive::Tar->create_archive() (which takes the name of a file or a reference to filehandle/glob, according to the documentation), I get:
Line 521 in Archive::Tar is:Can't call method "gzwrite" without a package or object reference at / +usr/local/lib/perl5/site_perl/5.6.0/Archive/Tar.pm line 521.
And that filehandle is the result of (from Archive::Tar):$file->gzwrite ("\0" x 1024)
The thing is, nothing seems weird. The filehandle should be opened on the fileno for STDOUT and things should progress along smoothly, with all the data being written to STDOUT (in my case, the browser). Is there something in the web server or Zlib which prevents all this from taking place or can anyone think of a better way to do what I'm doing? I'm really at a loss as to wear to begin working towards a solution.$fh = Compress::Zlib::gzdopen_ ($fh, $mode, 0)
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tar File To Web Browser
by repson (Chaplain) on Dec 10, 2000 at 14:17 UTC | |
by Hrunting (Pilgrim) on Dec 10, 2000 at 23:38 UTC | |
|
Re (tilly) 1: Tar File To Web Browser
by tilly (Archbishop) on Dec 10, 2000 at 23:20 UTC | |
|
The Problem & My Solution (please comment)
by Hrunting (Pilgrim) on Dec 11, 2000 at 00:49 UTC | |
by Fastolfe (Vicar) on Dec 11, 2000 at 00:52 UTC | |
by tilly (Archbishop) on Dec 11, 2000 at 03:53 UTC | |
by a (Friar) on Dec 11, 2000 at 10:07 UTC |