Hello group,

I was wanting opinions on what you think is better and why:

Assuming there are several places you need to check and see if the script is being run via terminal or not, would it be better to:


if(-t STDIN) {

everytime *or* do it once:

my $isterminal = -t STDIN;

and then do

if($isterminal) {

everytime?

TIA!

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to