in reply to Delay evaluation of tied scalar when returned from sub

I think the point you are missing is that tie acts on a container (a variable), but what you are returning is what's in the container, the value, which, as you note, triggers fetch. To put magic on a value, you need overload, not tie.
  • Comment on Re: Delay evaluation of tied scalar when returned from sub

Replies are listed 'Best First'.
Re^2: Delay evaluation of tied scalar when returned from sub
by harryf (Beadle) on Aug 30, 2006 at 12:51 UTC
    OK - thanks - will see how far I can get with overloading.