
Yahoo::Answers - The great new Yahoo::Answers!

Version 0.01

Quick summary of what the module does.
Perhaps a little code snippet.
use Yahoo::Answers;
use Data::Dumper;
my $ya = Yahoo::Answers->new(
query => 'teste',
results => 50,
sort => 'date_desc',
appid =>
'9J_NabHV34Fuzb1qIdxpKfQdBmV6eaMGeva5NESfQ7IDCupidoKd_cSGK7MI5Xvl.eLeQKd9YkPOU0M4DsX73A--'
);
$ya->region_by_name('Brazil');
my $struct = $ya->get_search;
if ( $ya->has_error ) {
die( Dumper $ya->error );
}
else {
print Dumper $struct;
}
With this, you can pass the country name, not the "us,uk" you can literary write the country name. The countrys are available here:
United States
United kingdom
Canada
Australia
India
Spain
Brazil
Argentina
Mexico
Italy
Germany
France
Singapore
you can also search for only results in espanol with,
En espanol
Build the URL to do the "get" with all arguments that you pass for the attributes.
Make the search, and decode the JSON, if don't have the attribute "query", it return nothing.
If have any error with your search, it sets the attribute error, so you can see the error and check for errors.
Do the request, and return the content.

Daniel de O. Mantovani, <daniel.oliveira.mantovani at gmail.com>

Please report any bugs or feature requests to bug-yahoo-ansewers at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Yahoo-Answers. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.
perldoc Yahoo::Answers
You can also look for information at:

Thiago Rondon

Copyright 2010 Aware (www.aware.com.br)
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.