Skip Menu |

This queue is for tickets about the Thread-Queue-Any CPAN distribution.

Report information
The Basics
Id: 58250
Status: resolved
Priority: 0/
Queue: Thread-Queue-Any

People
Owner: ELIZABETH [...] cpan.org
Requestors: mzagrabe [...] d.umn.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Download signature.asc
application/pgp-signature 836b

Message body not shown because it is not plain text.

In version 1.0, now on its way to CPAN, you can say: use Thread::Queue::Any serialize => $classname; Please check the documentation. Sorry to have taken this long!