|Welcome to the Monastery|
Moose stringification overloading isn't workingby dd-b (Monk)
|on Feb 09, 2013 at 22:05 UTC||Need Help??|
dd-b has asked for the
wisdom of the Perl Monks concerning the following question:
I've got a simple case working exactly as I expect and as documented, but a more complicated case NOT working. The main difference is that in the more complicated case, I'm accessing a child class of where I did the overload.
In the parent class I do:
I use it like this:
The resulting log line comes out like this: 20130209 15:27:30.041 TRACE TrafCon.pl 158 6070: Zep is OT::Zeppelin::AddVendorKey stringifies as OT::Zeppelin::AddVendorKey=HASH(0x378d480) but _stringify returns OT::DB::Result::Upload|upload|upload_id=1
OT::Zeppelin::AddVendorKey is a direct child of OT::Zeppelin, which is where the operator overload was done.
My head hurts, and the wall seems to still be fine. Any ideas?