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 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(0x86b022)" instead of the value as it showed the
> first time through.
> 
> It's a reference going in, and a reference coming out, but for some reason
> it doesn't like being stuck into Apache::Session.
> 
> I can work around it by testing if it's a Math::Currency reference, and
> call Math::Currency->new.  But this seems a little silly.  Anyone seen
> this before?
> 
> Jay Jacobs
> 
> 

Reply via email to