Skip Menu |

This queue is for tickets about the WWW-Scraper-ISBN CPAN distribution.

Report information
The Basics
Id: 44792
Status: resolved
Worked: 10 min
Priority: 0/
Queue: WWW-Scraper-ISBN

People
Owner: BARBIE [...] cpan.org
Requestors: bkb [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.25
Fixed in: (no value)



The code says if($business_isbn_loaded) { my $isbn_object = Business::ISBN->new($isbn); croak("Invalid ISBN specified.\n") if (!$isbn_object- Show quoted text
>is_valid);
} but this doesn't take account of the case when Business::ISBN->new returns "undefined", which may happen (from documentation): "If the constructor decides it cannot create an object, it returns undef." It's necessary to change the above to if (!$isbn_object || !$isbn_object->is_valid) I hope this bug report is helpful.
Subject: Fixed Business::ISBN undef object
Fixed in 0.26 just released to CPAN