On Mar 14, 2:06 pm, [email protected] (Jim Gibson) wrote:
> The standard Unix function for determining this is isatty(in fd), where fd
> is the file descriptor for the input/output stream. I don't know the
> equivalent in Windows. However, there is the file test operator -t that
> returns true if "Filehandle is opened to a tty", and the POSIX module
> includes the isatty function. Try those.

Yes!  The -t test did the trick.

Thanks Jim.


--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to