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