in reply to Tie'ing writes to formats

I faintly remember that it is possible to name individual slots in hash table entries, along the lines of $::slot{SCALAR} and $::slot{FORMAT}.
While you can access individual slots in globs to get access a given datatype, you can't get a FORMAT slot.
HTH

_________
broquaint

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

    Thanks. It is beginning to sound as though there is no way (hesitates to say this, as there is always a way) I can trap the format output of P::RD (which is opened to a dup(2)ed STDERR) short of doing something extreme like trying to forking a child to poll for output on all of the parent's filehandles.