What is the use of -t?
Answer / Kumar Abhimanyu Singh
-t is a Perl built-in variable that tests whether input comes from a terminal (interactive) or a pipe/redirection (non-interactive). It's often used to determine if a script should run in tty mode or not. For example: if (-T) { print "This script is running interactively.n" }
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain which feature of PERL provides code reusability?
What are the steps involved in configuring a server using cgi programming?
What are some common methods to all handles in perl?
Explain what is STDIN, STDOUT and STDERR?
Explain the arguments for perl interpreter.
Explain strftime() function in perl?
How to open and read data files with Perl
What is the importance of perl warnings? How do you turn them on?
What are prefix dereferencer? List them.
Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.
What rules must be followed by modules in perl.
How to implement a stack in Perl?