make_default_data.pl
% curl https://www.isbn-international.org/?q=download_range/15821 > RangeMessage.xml % perl make_default_data.pl RangeMessage.xml # cut and paste result into lib/Business/ISBN/Data.pm
This program takes the RangeMessage.xml and makes the data structure to hard-code into Business::ISBN::Data.
The module ships with the RangeMessage.xml that was current as of the release of the module, but it also hard-codes the same data. That way, the module has the data even if the XML file disappears. The module can also use any RangeMessage.xml you specify, which allows you to use updated (or even past) data. The hard-coded data always gets you back to that for the release.
This module lives in a Github repository:
https://github.com/briandfoy/business-isbn-data.git
You are probably also interested in the module that uses it:
https://github.com/briandfoy/business-isbn.git
If you have something to add, create a fork on Github and send a pull request.
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Yakov Shafranovich updated the data in October 2008.
Daniel Jakubik updated the data in July 2012.
Markus Spann suggested looking for RangeMessage.xml in the current directory to make it work with Perl app bundlers.
Josef Moravec <josef.moravec@gmail.com> updated the data in January 2019.
<josef.moravec@gmail.com>
Peter Williams fixed a serious issue with ISBN-13 (GitHub #5)
Copyright © 2002-2021, brian d foy <bdfoy@cpan.org>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.
To install Business::ISBN::Data, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::ISBN::Data
CPAN shell
perl -MCPAN -e shell install Business::ISBN::Data
For more information on module installation, please visit the detailed CPAN module installation guide.