Subject: | please consider using YAML to serialize in addition to Storable |
Date: | Tue, 08 Jun 2010 14:56:15 -0500 |
To: | bug-Thread-Queue-Any [...] rt.cpan.org |
From: | Matt Zagrabelny <mzagrabe [...] d.umn.edu> |
Greetings,
Thank you for writing Thread::Queue::Any. I have some objects that have
GLOBs as member data. Enqueue'ing these objects into a
Thread::Queue::Any, of course, blows up due to Storable's inability to
handle the GLOB. In googling, I found that the constructor for
POE::Filter::Reference[1] allows for a set of different modules that
provide freeze and thaw subroutines.
Please consider adding a parameter to the constructor to allow the
choosing of the serializing module.
FWIW, I've looked at modifying the source code, but was having trouble
adding member data to the class. The parent of Thread::Queue::Any is a
blessed array reference, not a hash, and I was uncertain of what to do.
Thanks again for your generosity,
[1]
http://search.cpan.org/~rcaputo/POE-1.289/lib/POE/Filter/Reference.pm
--
Matt Zagrabelny - mzagrabe@d.umn.edu - (218) 726 8844
University of Minnesota Duluth
Information Technology Systems & Services
PGP key 4096R/42A00942 2009-12-16
Fingerprint: 5814 2CCE 2383 2991 83FF C899 07E2 BFA8 42A0 0942
He is not a fool who gives up what he cannot keep to gain what he cannot
lose.
-Jim Elliot
Message body not shown because it is not plain text.