Skip Menu |

This queue is for tickets about the MediaWiki-API CPAN distribution.

Report information
The Basics
Id: 41556
Status: resolved
Priority: 0/
Queue: MediaWiki-API

People
Owner: Nobody in particular
Requestors: DCOLLINS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.22
Fixed in: (no value)



Subject: Warning "odd number of elements in hash assignment"
When you call decoded_content on line 285, you pass a hash reference, however HTTP::Message line 193 seems to be expecting a plain hash. Line 285 should really be: my $decontent = $response->decoded_content(charset=>'none); All of my Perlwikipedia tests still work when making that change.
On Mon Dec 08 20:10:56 2008, DCOLLINS wrote: Show quoted text
> When you call decoded_content on line 285, you pass a hash reference, > however HTTP::Message line 193 seems to be expecting a plain hash. Line > 285 should really be: > > my $decontent = $response->decoded_content(charset=>'none); > > All of my Perlwikipedia tests still work when making that change.
I must have missed this. sorry about that. What code produced this, as I never noticed it in testing ?
Just about anything with use warnings enabled. For instance, if you have Perlwikipedia: $perl -MSTWP -we '$e=new STWP("Testing");$e->get_allusers()'
Fixed in 0.23. Thanks for the report.