brian d foy > Test-ISBN > Test::ISBN

Download:
Test-ISBN-2.01.tar.gz

Dependencies

Annotate this POD

Related Modules

Test::More
Test::Unit
Test::Harness
Business::ISBN
WWW::Mechanize
Test::Exception
more...
By perlmonks.org
View/Report Bugs
Module Version: 2.01   Source  

NAME ^

Test::ISBN - Check International Standard Book Numbers

SYNOPSIS ^

        use Test::More tests => 1;
        use Test::ISBN;

        isbn_ok( $isbn );

DESCRIPTION ^

This is the 2.x version of Test::ISBN and works with Business::ISBN 2.x.

Functions

isbn_ok( STRING )

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.

isbn_group_ok( STRING, COUNTRY )

Ok is the STRING is a valid ISBN and its country code is the same as COUNTRY.

isbn_country_ok( STRING, COUNTRY )

Deprecated. Use isbn_group_ok. This is still exported, though.

For now it warns and redirects to isbn_group_ok.

isbn_publisher_ok( STRING, PUBLISHER )

Ok is the STRING is a valid ISBN and its publisher code is the same as PUBLISHER.

SOURCE AVAILABILITY ^

This source is part of a SourceForge project which always has the latest sources in CVS, as well as all of the previous releases.

        http://sourceforge.net/projects/brian-d-foy/

If, for some reason, I disappear from the world, one of the other members of the project can shepherd this module appropriately.

AUTHOR ^

brian d foy, <bdfoy@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (c) 2002-2007 brian d foy. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: