Thanks -- don't know how my Googl'ing missed that...<br/>
<br/>
Guess I won't have to re-invent the wheel. :)<br/>
<br/>
Dan<br/>
<br/>
On Thu, May 18, 2006 10:48, Andy Lester wrote:<br/>
&gt; <br/>
&gt; On May 18, 2006, at 10:19 AM, Daniel Linder wrote:<br/>
&gt; <br/>
&gt;&gt; Has anyone seen a good way to determine if a Perl script is
running<br/>
&gt;&gt; on an interactive console vs. within a shell or Perl script?  I<br/>
&gt;&gt; have a code snippet that I want to print more text to a console
for<br/>
&gt;&gt; the user to view, but if it is within a script I don't want to<br/>
&gt;&gt; clutter its output.<br/>
&gt; <br/>
&gt; This is covered in detail in the FAQ.<br/>
&gt; <br/>
&gt; $ perldoc -q interactive<br/>
&gt; <br/>
&gt; Found in /System/Library/Perl/5.8.6/pods/perlfaq8.pod<br/>
&gt;         How do I find out if I&rsquo;m running interactively or
not?<br/>
&gt; <br/>
&gt; <br/>
&gt; --<br/>
&gt; Andy Lester =&gt; andy@petdance.com =&gt; www.petdance.com =&gt;
AIM:petdance<br/>
&gt; <br/>
&gt; <br/>
&gt; <br/>
&gt; <br/>
<br/>
<br/>
- - - -<br/>
&quot;Wait for that wisest of all counselors, time.&quot; -- Pericles<br/>
&quot;I do not fear computers, I fear the lack of them.&quot; -- Isaac
Asimov<br/>
&quot;Soon we will be able to harness the rotational energy from Orwell's
grave to solve all world energy problems.&quot; -- /. user GigsVT
(208848)<br/>
GPG fingerprint:6FFD DB94 7B96 0FD8 EADF  2EE0 B2B0 CC47 4FDE 9B68