File: gen-hello-par.pl

package info (click to toggle)
libpar-perl 1.020-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: perl: 1,047; makefile: 2; sh: 2
file content (7 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
use strict;
use warnings;
use Archive::Zip qw( :ERROR_CODES );

my $zip = Archive::Zip->new();
exit($zip->addTree("t/data", "") == AZ_OK
     && $zip->writeToFileNamed("t/hello.par") == AZ_OK ? 0 : 1);