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 / jayakumar.b

use:
* Object Verification will happen @ Compile Time.
* File will have extention of .pm
* Module location will be set by @ISA Variable.

require:
* Object Verification will happen @ Run TIme.
* Method can be used from and .pm or .pl file.
* Absolute path to be given, if file located in different
dir.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How and what are closures implemented in perl?

895


What is the use of now constructor in perl?

972


What are the advantages of programming in perl?

1042


What is the difference between use and require in perl programming?

939


Define dynamic scoping.

897


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

1032


What does -> symbol indicates in Perl?

977


Explain what is perl language?

935


Explain use of ‘my’ keyword in perl?

937


Explain cpan?

981


How does polymorphism work in perl? Give an example.

872


How to convert arrays into a string in perl?

947


How do you set environment variables in perl?

1046


Explain substr function in perl?

1037


How to open a directory in perl?

1113