$VAR1 = { '4' => 'four', '1' => 'one', '3' => 'three', '2' => 'two' }; $VAR1 = [ { 'blah' => 'barf', 'other' => 'four', 'thing' => 'two' } ]; HASH(0x1c48728) Attribute (_data) does not pass the type constraint because: Validation failed for 'ArrayRef' with value 1 at /Thing.pm line 30 Thing::data('Thing=HASH(0x1c41a68)', 'ARRAY(0x1caa868)') called at ./test.pl line 18