in reply to Re: Passing a Hash to another Object in MethodMaker
in thread Passing a Hash to another Object in MethodMaker
touse Class::MethodMaker [ new => "new", scalar => 'debug' , hash => '_returned_xml' , ];
and then...use Class::MethodMaker [ new => "new", scalar => 'debug' , scalar => '_returned_xml' , ];
and with: :my $object = UPS::TrackedPackage->new; return $object->_returned_xml('foo'); #The set seems out of date
I get: Can't locate object method "_returned_xml" via package "foo" (perhaps you forgot to load "foo"?) at ootrack.pl line 32. It seems there may be something I am just not getting:-) Perhaps I might have better luck with a different OO library?my $tp = $Package->requestTrack(); #print $Package->_returned_xml(); print $tp->_returned_xml(); print Dumper($Package->_returned_xml());
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Passing a Hash to another Object in MethodMaker
by kennethk (Abbot) on Mar 10, 2009 at 20:37 UTC | |
by kbrandt (Initiate) on Mar 10, 2009 at 22:09 UTC |