Skip Menu |

This queue is for tickets about the Array-AsHash CPAN distribution.

Report information
The Basics
Id: 20777
Status: resolved
Priority: 0/
Queue: Array-AsHash

People
Owner: Nobody in particular
Requestors: venky [...] berkeley.edu
Cc:
AdminCc:

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



Subject: Re: Request: Class::Std::Storable
Date: Mon, 31 Jul 2006 13:35:22 -0700
To: bug-Array-AsHash [...] rt.cpan.org
From: "Venky Iyer" <venky [...] berkeley.edu>
Thanks for your response. Another option you might consider is Object::InsideOut. I've had really good experiences with it, and it supports serialization already. The get_array() method wouldn't serve my purpose as nicely, unfortunately -- my Array::AsHash object is one of the members in a class I'm trying to serialize. Venky On 7/30/06, Venky Iyer <venky@berkeley.edu> wrote: Show quoted text
> Could you please modify the :ATTRs in Array::AsHash so as to support > Class::Std::Storable? I could go in and change Class::Std to > Class::Std::Storable, but if you changed the order of those attributes at > some point in the future, thaw() would break. > > > Venky > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >
Subject: Re: [rt.cpan.org #20777] Re: Request: Class::Std::Storable
Date: Tue, 1 Aug 2006 03:21:57 -0700 (PDT)
To: bug-Array-AsHash [...] rt.cpan.org
From: Ovid <curtis_ovid_poe [...] yahoo.com>
Fair enough. I see your problem. I'll look into either making that switch or just going back to a hash-based object. Hopefully I can get to that soon. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/ Show quoted text
----- Original Message ---- From: Venky Iyer via RT <bug-Array-AsHash@rt.cpan.org> To: undisclosed-recipients Sent: Monday, July 31, 2006 9:36:10 PM Subject: [rt.cpan.org #20777] Re: Request: Class::Std::Storable Mon Jul 31 16:36:08 2006: Request 20777 was acted upon. Transaction: Ticket created by venky@berkeley.edu Queue: Array-AsHash Subject: Re: Request: Class::Std::Storable Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: venky@berkeley.edu Status: new Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=20777 > Thanks for your response. Another option you might consider is Object::InsideOut. I've had really good experiences with it, and it supports serialization already. The get_array() method wouldn't serve my purpose as nicely, unfortunately -- my Array::AsHash object is one of the members in a class I'm trying to serialize. Venky
I looked into the docs for Object::InsideOut and it clearly provides what you want. However, the change seemed like more trouble than it was worth (I'll hate myself for saying that later) so I just turned this object into a regular blessed hash. It was much faster that way. This should make serialization easy. The only potential problem I can see is trying to serialize an iterator. Since that uses a coderef to track its state, how you choose to serialize it could impact whether or not it works. Let me know if you have any problems. Cheers, Ovid