Subject: | Business-ISBN do not allow check any characters sequence |
Dear brian d foy!
New implementation of Business-ISBN do not allow
check any characters sequence.
For instance:
Business::ISBN->new('1234567890123')
print 'Cannot set prefix [123] on an ISBN-13 at x.pl line xx'
and abend of perl
Simple workaround:
# diff ISBN13.pm ISBN13.pm-std
40c40,41
< # croak "Cannot set prefix [$_[1]] on an ISBN-13" unless $_[1]
=~ m/\A97[89]\z/;
---
Show quoted text
> croak "Cannot set prefix [$_[1]] on an ISBN-13"
> unless $_[1] =~ m/\A97[89]\z/;
Please make appropriate update.
Best regards,