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

How to connect with sqlserver from perl and how to display database table info?

535


Define operators used in perl?

521


Explain about the applications of perl?

546


What are the functions that can be performed using cgi program?

489


Which operator in perl is used for the concatenation of two strings?

500






How do find the length of an array?

522


What are the various perl data types based on the context?

538


What can be done for efficient parameter passing in perl? Explain.

562


Explain goto name?

528


What are the features of perl language?

592


How to renaming a file in perl programming?

553


Write a cgi program to show the header part?

526


What do you mean by context of a subroutine?

564


Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??

1761


What is -> symbol in perl?

574