in reply to Tie'ing writes to formats

According to the docs, WRITE is for syswrite, not write. You should try providing the PRINT or PRINTF tie routines and see if the write eventually triggers down through there.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Tie'ing writes to formats
by ruscoekm (Monk) on Nov 02, 2002 at 15:29 UTC
    Hi Randal

    I did try providing PRINT and PRINTF. More to the point, I checked the code of Tie::Handle and Tie::StdHandle first. (Log::OPG::Info inherits from Tie::StdHandle, which itself inherits from Tie::Handle.) Tie::Handle provides PRINT and PRINTF methods, which simply invoke WRITE, if such a method has been defined apart from the one in Tie::Handle itself.

    Also, from stepping through the code in the debugger, it appears as though the write function does not step into any of the Tie:: methods at all.

    Cheers
    Kevin