Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Business-ISBN CPAN distribution.

Report information
The Basics
Id: 27107
Status: resolved
Priority: 0/
Queue: Business-ISBN

People
Owner: Nobody in particular
Requestors: ask [...] develooper.com
Cc:
AdminCc:

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



Subject: can't call as_isbn13 on an already isbn13 object
Date: Sat, 12 May 2007 16:02:08 -0700
To: bug-Business-ISBN [...] rt.cpan.org
From: Ask Bjørn Hansen <ask [...] develooper.com>
$ ./combust/bin/perl -w -MBusiness::ISBN -e '$i=Business::ISBN->new ("9789607771278")->as_isbn13; print(($i ? "" : "not ") . "ok\n")' Can't call method "fix_checksum" on an undefined value at /pkg/ packages/perl-5.8.8/lib/site_perl/5.8.8/Business/ISBN13.pm line 75.
This wasn't a problem with Business::ISBN but with a new publisher code range added for Greece (960). I've updated Business::ISBN::Data (1.14 on its way to CPAN). I'll have to think about the interface for handling errors and reporting the situation better, but in general you should make sure you have a valid object before you try to do anything with it :)