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 renaming a file in perl programming?

991


What are the advantages of c over Perl?

885


“Perl regular expressions match the longest string possible”. What is the name of this match?

903


Explain lists and ivalue?

900


How to read a file into a hash array?

1001


How can I display all array element in which each element will display on next line in perl ?

878


Explain string comparison operators in perl.

973


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

855


What is use of ‘->’ symbol?

952


Create a function that is only available inside the scope where it is defined ?

962


How to compare two strings in perl?

894


List all the features of perl programming?

857


How to read a single line from a file in perl?

929


How will you get the count of parameters passed to a perl subroutine?

895


Explain subroutine in perl?

868