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