Test::ISBN - Check International Standard Book Numbers
use Test::More tests => 1; use Test::ISBN; isbn_ok( $isbn );
This is the 2.x version of Test::ISBN and works with Business::ISBN 2.x.
Ok is the STRING is a valid ISBN, in any format that Business::ISBN accepts. This function only checks the checksum. The publisher and country codes might be invalid even though the checksum is valid.
If the first argument is an ISBN object, it checks that object.
Ok is the STRING is a valid ISBN and its country code is the same as COUNTRY. If the first argument is an ISBN object, it checks that object.
Deprecated. Use isbn_group_ok. This is still exported, though.
For now it warns and redirects to isbn_group_ok.
Ok is the STRING is a valid ISBN and its publisher code is the same as PUBLISHER.
This source is in GitHub:
https://github.com/briandfoy/test-isbn
brian d foy, <briandfoy@pobox.com>
<briandfoy@pobox.com>
Copyright © 2002-2024, brian d foy <briandfoy@pobox.com>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
To install Test::ISBN, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::ISBN
CPAN shell
perl -MCPAN -e shell install Test::ISBN
For more information on module installation, please visit the detailed CPAN module installation guide.