[EMAIL PROTECTED] (brian moseley) wrote:
>
>hmm... i think i have a similar question.
>
>i want to prevent people from writing data directly to the
>apache connection and instead force them to use an object i
>provide for generating output. they can call $obj->print()
>directly, but i also want them to be able to use 'print
>"foo\n"' as is standard in handlers and registry scripts.
>
>seems like i want to untie STDIN and STDOUT as per below..
>but then how do i attach those handles to my object's print
>method? is tieing the correct approach, or is there some
>other kind of filehandle magic i can use?

Tying is probably the way to go.  You can check out Apache::Filter for
an example of how to tie STDOUT.


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

Reply via email to