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 / gopi sreekanth

use can take a bareword and require doesnot while accessing
module
use is used in compile time ie all code is parsed before
program run where as require is used in run time. So if
there is much code in initialization include that in use
rather than require
use supports import method by default and require doesnt
support
Inside use default import method will be present. BEGIN {
require Module; }

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 'rollback' command in perl?

946


Where do we require ‘chomp’ and what does it mean?

980


How to close a file in perl?

935


Write syntax to add two arrays together in perl?

921


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

936


what is Polymorphism in Perl?

959


How would you ensure the re-use and maximum readability of your perl code?

932


What does cgi program store?

904


Write a program to decode the data in the form using cgi programming

1036


How can you define “my” variables scope in Perl and how it is different from “local” variable scope?

1124


What does the qq{ } operator do?

941


How to determine strings length in perl?

955


What is perl programming?

1015


What are the options that can be used to avoid logic errors in perl?

950


Write a program that explains the symbolic table clearly.

948