On Mar 14, 2:06 pm, jimsgib...@gmail.com (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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to