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 / kush

Use :

1. The method is used only for the modules(only to include
.pm type file)

2. The included objects are varified at the time of compilation.

3. No Need to give file extension.

Require:

1. The method is used for both libraries and modules.

2. The included objects are varified at the run time.

3. Need to give file Extension.

Is This Answer Correct ?    38 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a package?

893


What is the difference between localtime() and gmtime() functions?

948


Explain splicing of arrays?

861


How does polymorphism work in perl?

860


What does cgi program store?

850


Explain ivalue?

929


How can arrays be tied?

855


Can inheritance be used in perl?

928


List the prefix dereferencer in Perl.

877


Explain chomp?

861


Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?

876


How will you access an element of a perl array?

887


What are scalar data and scalar variables?

1053


Explain USE and REQUIREMENT statements?

879


Demonstrate subroutines in perl with a simple example.

815