Skip Menu |

This queue is for tickets about the Archive-Zip CPAN distribution.

Report information
The Basics
Id: 34103
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Archive-Zip

People
Owner: Nobody in particular
Requestors: pcronin [...] loyola.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Error in a documentation example
Date: Fri, 14 Mar 2008 14:50:38 -0700
To: bug-Archive-Zip [...] rt.cpan.org
From: Patrick Cronin <pcronin [...] loyola.edu>
Under the first writeToFileHandle example in the docs on the URL: http://search.cpan.org/~adamk/Archive-Zip-1.23/lib/Archive/Zip.pm The example shows this usage: my $fh = IO::File->new( 'someFile.zip', 'w' ); unless ( $zip->writeToFileHandle( $fh ) != AZ_OK ) { # error handling } In my best guess, the comparison in the unless condition should be a ==, not a !=. HTH, Patrick Cronin
Hi! Thanks for reporting this. This is now fixed in the trunk. Please do not reply to this bug as it will just re-open it. Regards, Shlomi Fish