Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Creating Zip Archives on the fly

by fulmar2 (Initiate)
on Oct 04, 2011 at 20:17 UTC ( [id://929668]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            use Archive::Zip; 
            my $zip = Archive::Zip->new();   # new instance
    ...
            print "Content-Type:application/zip\n";  
            print "Content-Disposition:attachment;filename=$FileNameToWrit
    +e\n\n";
            $zip->writeToFileHandle(*STDOUT);
    
  2. or download this
            use Archive::Zip; 
            my $zip = Archive::Zip->new();   # new instance
    ...
                    $zip->writeToFileHandle(*STDOUT);
                }
            }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://929668]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (9)
As of 2024-04-23 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found