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 is the difference between require and use in perl?

Answer Posted / vinoth_bksys

The differences are many and often subtle:

* use only expects a bareword, require can take a
bareword or an expression
* use is evaluated at compile-time, require at run-time
* use implicitly calls the import method of the module
being loaded, require does not
* use excepts arguments in addition to the bareword (to
be passed to import), require does not
* use does not behave like a function (i.e can't be
called with parens, can't be used in an expression, etc),
whereas require does

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the arguments and what do they mean in perl programming?

995


What are the steps involved when the cgi program starts running?

910


Differentiate between use and require, my and local, for and foreach and exec and system

903


How we can navigate the xml documents?

1003


Explain ivalue?

990


Explain perl. When do you use perl for programming?

872


What does -> symbol indicates in Perl?

970


What does this symbol mean '->'?

999


What are hashes?

933


Which functions in perl allows you to include a module file. State their differences.

937


How many loop control keywords are there in perl?

932


How many types of variable in perl?

1067


How to read from a pipeline with Perl

1037


What is perl scripting?

931


How to start perl in interactive mode?

1040