Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is a perl references?

923


Explain split function in perl?

990


What value is returned by a lone `return;’ statement?

1054


There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"

2392


What is the syntax used in Perl grep function?

1030


Differentiate between arrays and list in perl.

987


what are the two ways to get private values inside a subroutine or block?

925


How do I sort a hash by the hash value?

920


How can you create anonymous subroutines?

918


Why do you use Perl?

972


Explain goto label?

911


You want to empty an array. How would you do that?

905


Explain join function in perl?

953


How can you call a subroutine and identify a subroutine?

984


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

926