This is a followup to an old message from June 19, to tie up loose ends.
A simple test case shows that the problem described here is a bug in
either Storable.pm, overload.pm, or Perl. Freezing and thawing an
object seems to destroy any overloaded operators of that object. I'm
starting to pursue
(If anyone else wants to mention how they use sessions I'm curious)
> First off, I'm doing this becuase I need to store variables (in
> currency) that are generated on a per-user session, for a short period of
> time (3 to 5 requests). I'm using a database back-end for the session.
>
> I was in
On Mon, 19 Jun 2000, Jay Jacobs wrote:
> I'm trying to use Math::currency with sessions, and I've run into a
> stumper. I initialize variables and make them Math::Currency objects,
> and display them just fine, but when I come back (unthaw the session)
> instead of seeing the value I get the re
First off, I'm doing this becuase I need to store variables (in
currency) that are generated on a per-user session, for a short period of
time (3 to 5 requests). I'm using a database back-end for the session.
I was initially wrong in my thinking about Math::Currency, and my solution
was to "stri
Okay, backup a second..., you're doing this... why? Do you need a
Math::Currency object stored inside the session?..., that could be quite a
hefty object. See, everything you write to a session you have to read back in,
and any time you update any small part of it it has to re-write the whole
re
I think I caught it. For some reason (little help here), you need to
"stringify" the Math::Currency instance, and store it as a scalar. And
calling ->new on a thawed object isn't a work around...
Jay
On Mon, 19 Jun 2000, Jay Jacobs wrote:
> Hello,
> I'm trying to use Math::currency with ses
Hello,
I'm trying to use Math::currency with sessions, and I've run into a
stumper. I initialize variables and make them Math::Currency objects, and
display them just fine, but when I come back (unthaw the session) instead
of seeing the value I get the reference showing
"Math::Currency=HASH(0x8