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 to compare two strings in perl?

932


What is the difference between die and exit in perl?

996


How to renaming a file in perl programming?

1044


What is the use of now constructor in perl?

964


How do I read command-line arguments with Perl?

1016


How to merge two arrays in perl?

1041


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

948


Difference between the variables in which chomp function work ?

1063


How many types of primary data structures in Perl and what do they mean?

1408


Mention the difference between die and exit in Perl?

1109


How can you use Perl warnings and what is the importance to use them?

962


How do you give functions private variables that retain their values between calls?

938


How to get help for perl?

973


What is the use of –w?

931


What is a chomp() function in perl?

1025