Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Archive::Zip seems hopelessly file-oriented to me. Archive::Zip::MockFileHandle seeme to offer some hope, but no docs, and it's not clear if I can add to the archive incrememntally.my $archive = Archive::Zip->new(); my $member = $archive->addDirectory('.'); while ($r = $q->fetchrow_hashref) { my $line = join("\t", map { $r->{$_} } @download_fields); $member->addToString('names.tab', $line); } $self->{state}{download_contents} = "$archive";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: some arbitrary string Archive::Zip contents of zip archive in a string
by shotgunefx (Parson) on Jan 24, 2002 at 14:37 UTC |