The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

make_default_data.pl

SYNOPSIS

        % 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

DESCRIPTION

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.

SOURCE AVAILABILITY

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.

AUTHOR

brian d foy, <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.

Peter Williams fixed a serious issue with ISBN-13 (GitHub #5)

COPYRIGHT AND LICENSE

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.