in reply to WWW::Scraper::ISBN::Driver
should beprint $book('title');
as $book is a hashref.print $book->{'title'};
More importantly, the module goes to the wrong site. It goes to lcweb.loc.gov which is now www.loc.gov. Editing the module fixes that. You should probably contact the author and let him know. His contact information is in the CPAN documentation.
Here is my (working after changing LOC_Driver) code:
use WWW::Scraper::ISBN::Driver; use WWW::Scraper::ISBN::LOC_Driver; $driver = WWW::Scraper::ISBN::LOC_Driver->new(); $LOC = "0764516965"; $driver->verbosity(1); $driver->search($LOC); die " $LOC Not Found" if ! $driver->found; print "Here is the info on $LOC\n"; print ref $book; my $book = $driver->book; print $book->{title};
HTH, --traveler
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Scraper::ISBN::Driver
by MiamiGenome (Sexton) on Jul 26, 2006 at 23:55 UTC |