On Wednesday, May 22, 2002, at 02:16 , John W. Krahn wrote:

[..]

> perldoc -f -w

thanks...

so that's the official way to get the '-X' test flags
I have been trying to figure that out for a while.

I stole the

        if (-t) {
                # we are attached to a tty
        } else {
                # we are not attached
        }

from some code I saw - used it, never 'got it' till now

         -t  Filehandle is opened to a tty.

So clearly that is the trick to keep when closing and
reopening STDIN for redirection....

ciao
drieux

---

" personally I of course would have done the lstat()
and all the old 'c-coder' skank - so it would 'look'
like "real code".... since of course everyone just
loves doing octal conversions.... And I also like
hitting myself on the head with a cricket bat, makes
me feel just like I am back in school...."



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to