What does the command "use strict" do and why should you
use it?

Answer Posted / prabin kumar, xansa(ind) chenn

"Use strict" is one of the pragma used for checking the
variable scope and syntax. If you use this pragma means,
you need to specify the scope (my, local, our) for the
variable and use the exact usage of operators.
For eg. Checking equality $number = 1 and $char eq 'a'.

Is This Answer Correct ?    22 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.

620


How to code in perl to implement the tail function in unix?

602


How to convert strings into an array in perl?

601


What can be done for efficient parameter passing in perl?

544


Explain the meaning of perl one-liner?

612






Explain what is the scalar data and scalar variables in Perl?

635


What is the importance of perl warnings?

608


What is the purpose of _package_ literal?

606


How will you create a file in perl?

581


Which guidelines by Perl modules must be followed?

665


How many data types are there in perl?

609


How do I pass a command line argument in perl?

627


How do you turn on the perl warnings?

567


What does perl do in linux?

608


What syntax is used for grep() function?

651