RE: Archive::Zip funnny return status

2003-08-14 Thread Dan Muey
> > I think your pattern match will only catch a literal AZ_OK, > > not the constant. And I'm not sure, but AZ_OK might evaluate > > to 0. At least I think I remember having trouble with that > > module because it returns 0 on success, and I kept testing > > for TRUE/FALSE based on the return

RE: Archive::Zip funnny return status

2003-08-10 Thread wiggins
On Wed, 6 Aug 2003 11:33:18 -0500, "Dan Muey" <[EMAIL PROTECTED]> wrote: > > > > I think your pattern match will only catch a literal AZ_OK, > > > not the constant. And I'm not sure, but AZ_OK might evaluate > > > to 0. At least I think I remem

RE: Archive::Zip funnny return status

2003-08-06 Thread Dan Muey
> I think your pattern match will only catch a literal AZ_OK, > not the constant. And I'm not sure, but AZ_OK might evaluate > to 0. At least I think I remember having trouble with that > module because it returns 0 on success, and I kept testing > for TRUE/FALSE based on the return status.

RE: Archive::Zip funnny return status

2003-08-06 Thread Tim Johnson
Muey Cc: [EMAIL PROTECTED] Subject: RE: Archive::Zip funnny return status On Wed, 6 Aug 2003 11:33:18 -0500, "Dan Muey" <[EMAIL PROTECTED]> wrote: > > > > I think your pattern match will only catch a literal AZ_OK, not

RE: Archive::Zip funnny return status

2003-08-05 Thread Tim Johnson
tatus. -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: Archive::Zip funnny return status use Archive::Zip; ... my $member = $zip->memberNamed($zippedfile); my $rc = $member->extract

Archive::Zip funnny return status

2003-08-05 Thread Dan Muey
use Archive::Zip; ... my $member = $zip->memberNamed($zippedfile); my $rc = $member->extractToFileNamed($unzippedfile); if($rc =~ m/AZ_OK/) { print "ok -$rc-\n; } else { print "Bad -$rc-\n"; } The code above *always* prints: Bab -0- But $unzippedfile is cre