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...

Explain the difference between use and require?

Answer Posted / vinoth.g

The use statement works at compile time, require at run
time. So if you have a module that does a lot in a begin
block and you don't really need it in all cases, then it's
clever to "require" it there where you want to use it but
don't "use" it. So you don't have to wait for all that
initializations of that module in case you don't need it.

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Demonstrate subroutines in perl with a simple example.

864


What are prefix dereferencer? List them.

977


How do you you check the return code of a command in perl?

986


What are arrays in perl?

969


What is the peculiarity of returning values by subroutines in perl?

917


How many ways can we express string in Perl?

972


What is the use of –w?

936


what are the steps involved in reading a cgi script on the server?

938


Explain perl. When do you use perl for programming?

880


What package you use to create a windows services?

892


How to close a file in perl?

952


What is the use of command “use strict”?

1031


Define dynamic scoping.

897


What is the difference between perl list and perl array?

867


Write a program to show the process of spawning a child process

861