« 『アメリカン・ロイヤーの誕生』 | Main | 串かつ »

ずばりわかる!Webプログラミング2.0





ずばりわかる!Webプログラミング2.0


を買ってきて早速Part2 WebAPIプログラミングの基本
の章をやってみた、が、サンプルプログラム(yahoo_search.pl)が動かない。
以下、自分用のメモ。


could not find ParserDetails.ini in C:/Perl/site/lib/XML/SAX
No _parse_* routine defined on this driver (If it is a filter, remember to set t
he Parent property. If you call the parse() method, make sure to set a Source. Y
ou may want to call parse_uri, parse_string or parse_file instead.) [XML::SAX::P
urePerl=HASH(0x1e6adb0)] at C:/Perl/site/lib/XML/SAX/Base.pm line 2616.

であった。


http://aspn.activestate.com/ASPN/Mail/Message/pdk/2017446
みると、ParserDetails.iniなくても動きそうな気がしたので
SAX.pmの

if (!open($fh, File::Spec->catfile($dir, "SAX", PARSER_DETAILS))) {
XML::SAX->do_warn("could not find " . PARSER_DETAILS . " in $dir/SAX\n");
return $class;

部分をコメントアウトした。
そうしていい根拠は何もない。
つづいて
C:\>ppm install -force XML-SAX-BASE


とするが、しかし

No _parse_* routine defined on this driver (if it a filter, remember to set the Parent property) [XML::SAX::PurePerl=HASH(0x1e6b1e4)] at C:/Perl/site/lib/XML/SA X/Base.pm line 2138.
と出るので
C:\>ppm install -force XML-SAX-PurePerl
を行う。

しかし実行結果は

Nothing to parse [Ln: , Col: ]


http://www.wireshark.org/
からwiresharkを取り込み実行すると
通信していない。

$ua->proxy('http','http://proxyo:80');
をコメントアウトした。これで動いた。 ひょっとしたら最後のところだけで良かったのかもしれない。


|

TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/27066/14709369

Listed below are links to weblogs that reference ずばりわかる!Webプログラミング2.0:

Comments

Post a comment




Comments are moderated, and will not appear on this weblog until the author has approved them.