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

Explain perl.

885


What is q (single q) operator in perl?

1002


Explain lists and ivalue?

890


What is perl pop array function?

880


What are the various uses of perl?

944


What is the use of '>>' in perl?

936


What is perl I used for?

898


What is it meants by '$_'?

857


What are scalar data and scalar variables?

1051


Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.

971


What does the qq{ } operator do?

885


Explain subroutine?

852


Is there any way to add two arrays together?

907


What are the various flags/arguments that can be used while executing a perl program?

812


How to prevent file truncation in perl?

933