Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Sunday August 14, 2005
12:52 PM

Updates to Business::ISBN

[ #26272 ]

I've made a couple of important updates to Business::ISBN.

First, I somehow neglected to expose a method to get the country group name. You could get the country code with country_code(), but not the name attached to that number. Now there is a country() method.

Second, I had a big newbie error. In checking the publisher code, I did something like:

return unless $self->{publisher_code};

However, that publisher code can be '0'. I guess that's okay. For instance, in Albania (country code 99927), there are three publisher codes: 0, 1, and 2. I need to validate the ISBN so it still works if the publisher code is 0.

return unless defined $self->{publisher_code};

There are actually several other country codes that do this, even though the ones I cared about used '00' because those country groups have a lot of publishers.

Upgrade to 1.82 when it makes it way to your favorite CPAN mirror. :)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.