Howdy, The following code returns this error: "Not an ARRAY reference at
/usr/local/share/perl/5.8.8/MediaWiki/API.pm line 425."
Code that fails
my $mw = MediaWiki::API->new();
$mw->{config}->{api_url} = 'http://en.wikipedia.org/w/api.php';
my $result = $api->list ({
action => 'query',
list => 'backlinks',
bltitle => 'Biafra'
}) || die $mw->{error}->{code} . ': ' . $mw->{error}->{details};
Note that it really does not matter what title is used. This is a valid
query, as the following code returns results, just not in a simple array.
my $mw = MediaWiki::API->new();
$mw->{config}->{api_url} = 'http://en.wikipedia.org/w/api.php';
my $result = $api->list ({
action => 'query',
list => 'backlinks',
bltitle => 'Biafra'
}) || die $mw->{error}->{code} . ': ' . $mw->{error}->{details};
Basically the module is returning an error as if there is a problem with it.