in reply to how to zip files using perl
If you don't have the zip cmdline util handy, consider tar -z, it's not the same but it compresses decently. Failing that, or if you prefer, check out the previous post about the CPAN module.my @files2zip = qw/file1.html file2.css file3.png/; my $fileStr = join(" ",@files2zip); my $zipfile = "files.zip"; my $output = `zip $zipfile $filesStr`; print "Progress:\n$output\n\nYour files are in [$zipfile].";
|
---|