in reply to Valid tty problem

You're working way too hard. Just use the -t file test, as documented in "perlfunc".

    -- Chip Salzenberg, Free-Floating Agent of Chaos

Replies are listed 'Best First'.
Re: Re: Valid tty problem
by tilly (Archbishop) on May 05, 2004 at 05:35 UTC
    He's not trying to make his program know whether he was handed a tty. He's trying to hand something else a tty that his program controls.

    The filetest, therefore, doesn't help.

      "Oops."

          -- Chip Salzenberg, Free-Floating Agent of Chaos