Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: $zip->addFile not working.

by arden (Curate)
on Jun 04, 2004 at 22:38 UTC ( #361243=note: print w/replies, xml ) Need Help??

in reply to $zip->addFile not working.

change the last line to $zip->addFile($fileWithPath) != AZ_OK || die "couldn't add $fileWithPath\n";

The single quotes are preventing the variable from being interpretted. Also, the author uses the AZ_OK constants for status. . .

- - arden.

update: Of course, I meant in your code, not in your post! Also added the AZ_OK info.
update2: As discovered in the CB, you must keep your $zip variable in scope when trying to execute methods on it! :)

Replies are listed 'Best First'.
Re^2: $zip->addFile not working.
by heigold1 (Acolyte) on Jun 04, 2004 at 22:47 UTC
    Hi Arden, I just took out the single quotes and it still isn't working. Any other ideas?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://361243]
[LanX]: YM: talking about breaches ... did you read about Cambridge Analytica harvesting 50e6 FB profiles for political propaganda?
LanX ... oh ... Brexit delayed ... again ... oh wonder ...
[Your Mother]: Heh. I keeping seeing related headlines but my narcissism is a perihelion right now so I'm busy. :P
[LanX]: https://www. news/series/ cambridge- analytica-files
[Your Mother]: s/a /at /;
[LanX]: just watch the video ...
[Your Mother]: Roger, will co.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2018-03-19 13:21 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.