I have been working on Hack 19 of the Spidering Hacks books but I'm getting an error when running the script. I'm assuming because the website has changed since the book was written.
This is the error I'm getting when I run the script:
Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.8.8/HTML/TreeBuilder.pm line 93. Can't call method "as_HTML" on an undefined value at ./SpiderTutorial_19_09.pl line 67. There are 0 Perl books and 0 Java books. 0 more Java than Perl.
I have already changed the address to the new page name in the code "http://oreilly.com/store/complete.html" but I need help figuring out the code to get it to work (I think that is the problem anyways).
I can include my code if it will help
Any help would be greatly appreciated.
Help get this topic noticed by sharing it on Twitter, Facebook, or email.
Each book has an errata page where errors are listed, and from which the authors and editors can review and try to find solutions to known problems.
You can check to see if this issue has been posted to the errata page for Spidering Hacks - if you don't already see it listed, please feel free to add it.
You can either get there by going to the catalog page for the book and clicking the 'view/submit errata' link, or you can go their directly by clicking this link: