tbone654 has asked for the wisdom of the Perl Monks concerning the following question:
use lib '../lib';
BEGIN { $| = 1; open (STDERR, ">&STDOUT"); print qq~Content-type: text/html\n\n~; }
If I run it off my own server everything is fine... But from Yahoo it blows up here... Any thoughts? Hints?Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.8. +7/HTTP/Request/Common.pm line 18. Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.8. +7/HTTP/Request/Common.pm line 18. Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.8. +7/HTTP/Headers/Util.pm line 6. Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.8. +7/HTTP/Headers/Util.pm line 6. Can't locate object method "new" via package "HTML::TreeBuilder::XPath +" at ../lib/Web/Scraper.pm line 115. Return Code: 512
Does this mean I need more modules? possibly?# need to modify directly the HTML::Element package, because HTML::Tre +eBuilder won't let me # change the class of the nodes it generates package HTML::Element; use Scalar::Util qw(weaken); use vars qw(@ISA); push @ISA, 'HTML::TreeBuilder::XPath::Node'; use XML::XPathEngine; { my $xp; sub xp { $xp ||=XML::XPathEngine->new(); return $xp; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Yahoo Hosting
by Anonymous Monk on Sep 20, 2013 at 00:44 UTC | |
by tbone654 (Beadle) on Sep 25, 2013 at 13:08 UTC |