in reply to Re: How to test caching?
in thread How to test caching?

Quick question on passing in a tied scalar:
my $arg = shift;
Does the magic of the passed-in tied scalar pass on to $arg? Or does $arg merely (a plain scalar) contain the copy of the tied variable?

Replies are listed 'Best First'.
Re^3: How to test caching?
by kyle (Abbot) on Aug 24, 2008 at 03:24 UTC

    What happens when you try it?

    The magic goes away. I didn't know that for sure when I posted, but I suspected that would be the case. That's why I also mentioned using overload.

    That works fine except for having to overload '=' too.

    Either way, I think it's altogether too much hassle to test a cache so simple.

      Agreed. Thanks, kyle.