Disclaimer: I have never used Class::MethodMaker and think the documentation needs some copy editing, particularly as the documents for hash functionality are all dead links.
In Class::Method::array, where the array functionality is discussed, the array invocation is done through array references not arrays (i.e. array => [qw/ x /]). This implies to me that your issue is that you are passing it a hash (which would be an very poorly scaling interface indeed) in place of a hash ref. What happened when you tried that (I note a corresponding line in your source is commented out)?
Update: Found Class::Method::hash through some linking. From *_set, it appears that you are invoking it improperly. Have you tried
my $object = UPS::TrackedPackage->new; $object->_returned_xml_set( %{$processedXML} ); return $object;
Update 2: Fixed a bad link.
In reply to Re: Passing a Hash to another Object in MethodMaker
by kennethk
in thread Passing a Hash to another Object in MethodMaker
by kbrandt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |