in reply to Problem with creating a zip: void file
open (FILE_LIST, '/home/user/d/file_list.txt') or die "File list open fail: $!";
to make sure your open is successful - that would certainly explain your observation. Barring that, a quick review of Archive::Zip doesn't raise any more flags. Try modifying your while loop to:
while (<FILE_LIST>) { print; chomp; my $member = $zip->addFile($_); print "Add error" unless ($member); }
and tell us if it actually outputs what you expect.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with creating a zip: void file
by afrika (Initiate) on Feb 05, 2010 at 21:38 UTC | |
by kennethk (Abbot) on Feb 05, 2010 at 22:19 UTC | |
by afrika (Initiate) on Feb 06, 2010 at 11:59 UTC |