http://www.perlmonks.org?node_id=831168


in reply to Catalyst::Request::Upload inside-out-object weirdness

That kind of error occurs when one does
my %hash = ( 'w', x => $x, y => $y, z => $z, );
or
my %hash = ( w => w(), # Returns <1 or >1 elements x => $x, y => $y, z => $z, );

If so, it should give a "Odd number of elements in hash assignment" warning.

In this case, the following was assigned to the hash:

( size => 374205, \ or vice-versa type => "image/jpeg", / "charset=utf-8; Content-Transfer-Encoding: binary", XXX headers => $headers, tempname => "/tmp/5xSW7Swasp", filename => "aaa.jpg", )