in reply to Re: Re: How can I unbless an object?
in thread How can I unbless an object?

Ahh, yes. Since I'm so enamoured with Template, it's hard to scream "too much DWIMmery" there. But in this sense, yes, there's a mismatch between that DWIMish design, and what you actually want to hand to it.

Do you really need two-way communication? Can you not just hand it a copy?

If you do need two-way communication, perhaps you could hand it a tie'd hash reference, and then map that back to your object.

-- Randal L. Schwartz, Perl hacker

  • Comment on •Re: Re: Re: How can I unbless an object?

Replies are listed 'Best First'.
Re: •Re: Re: Re: How can I unbless an object?
by mp (Deacon) on Jul 19, 2002 at 18:47 UTC
    I don't need 2-way communication, so a copy works fine and is conceptually cleaner. But it seems wasteful, since handing off the object to the TT2 process method is the very last thing done with the copy and the original object before they both go out of scope and disappear.