|Syntactic Confectionery Delight|
How to pull author, title using ISBN (WWW::Scraper::ISBN)?by Perl300 (Pilgrim)
|on Apr 15, 2019 at 19:45 UTC||Need Help??|
Perl300 has asked for the
wisdom of the Perl Monks concerning the following question:
I was trying to use WWW::Scraper::ISBN to pull details like author and title of a book using it's ISBN.
The code example from modules documentation is throwing error on perl 5.28.1
The above code gives error:Can't locate object method "isbn" via package "WWW::Scraper::ISBN" at isbn_lookup.pl line 18.
I though this might be because "isbn" method was not present in "WWW::Scraper::ISBN" module (perl module documentation on Meta CPAN). I found that method in Business::ISBN module.
Also there was mention of "Business::ISBN" module in "WWW::Scraper::ISBN" module's documentation. So I addeduse Business::ISBN and changed $scraper->isbn($num); to $scraper->Business::ISBN::isbn($num);
But it still throws same error.
What am I missing here? Is there any other/better way to get book details like Title/Author using ISBN?