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

How to start perl in interactive mode?

1038


What are the different instances used in cgi overhead?

979


you are required to replace a char in a string and store the number of replacements. How would you do that?

912


How do I sort a hash by the hash key?

916


what is the difference between java and cgi?

1063


How to remove a directory in perl?

983


What is a perl references?

916


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

947


Why aren't Perl's patterns regular expressions?

1160


How would you ensure the re-use and maximum readability of your perl code?

932


You want to download the contents of a url with perl. How would you do that?

867


Explain the meaning of subroutine?

966


Explain the meaning of closure in perl.

1021


How many loop control keywords are there in perl?

929


What are the various advantages and disadvantages of perl?

895