in reply to Yahoo API problems?

Vincenzo-- The example works with the latest version of Yahoo::Search. I compared 1.4.7 with the last version, and found that the problem is that Yahoo seems to have added some whitespace that the search program didn't like/account for. In v1.4.8 they detect & ignore the extra whitespace:

v1.4.7, XML.pm:
76: if ($node->{Data}) 77: { 78: die "oops: node Char='$node->{Char}'" if $node->{Char} ne ""; 79: $val = $node->{Data}; 80: }

v1.4.8, XML.pm:
76: if ($node->{Data}) 77: { 78: if ($node->{Char} =~ m/^\s*$/) { 79: $node->{Char} = ""; 80: } else { 81: die "oops [$node->{Char}]"; 82: } 83: $val = $node->{Data}; 84: }
--roboticus

Replies are listed 'Best First'.
Re^2: Yahoo API problems?
by A200560 (Novice) on Mar 05, 2006 at 21:16 UTC
    OK, with the latest version Yahoo-Search-1.5.8 - 04 Mar 2006 now works, but Yahoo should announce every change in the API else developers become crazy. Infact, there is no trace of this little change.

    Thank you very much!

    Vincenzo