TedHopp has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use XML::Writer together with IO::Compress::Gzip like this:
Unfortunately, the call to gzip dies with the message “illegal input parameter”my $doc, $zipped; my $writer = new XML::Writer(OUTPUT=>\$doc, ...); # write stuff ... $writer->end(); gzip \$doc => \$zipped;
However, if I change the last line to:
everything works fine. What's going on?my $copy = $doc; gzip \$copy => \$zipped;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Writer oddness
by ikegami (Patriarch) on Feb 24, 2010 at 17:39 UTC | |
by TedHopp (Novice) on Feb 24, 2010 at 17:53 UTC | |
by ikegami (Patriarch) on Feb 24, 2010 at 20:15 UTC | |
by TedHopp (Novice) on Feb 25, 2010 at 02:48 UTC | |
by ikegami (Patriarch) on Feb 25, 2010 at 04:48 UTC | |
|