Re: Change 27905: Changes to perlfaq8 "How do I find out if I'm running interactively

[email protected] (Smylers) Thu, 20 Apr 2006 12:05:12 +0100
Newsgroups perl.perlfaq.workers
Message-ID <[email protected]>
Steve Peters writes:

> Change 27905 by stevep@stevep-mccoy on 2006/04/19 16:32:26
> 
> 	Changes to perlfaq8 "How do I find out if I'm running interactively 
> 	or not?" suggested by Slaven Rezic in RT #38901: perlfaq8 correction

Is it worth offering the following as an alternative?

  use IO::Interactive qw<is_interactive>;

  print "We're interacting!\n" if is_interactive;

I suspect that at least some people looking at this question would find
the above sufficient for their needs and simpler than the current (or
previous) answer.

Smylers