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 module and package?

Answer Posted / kiruthikau

- A module is a .pm file containing some Perl code.
- A package is a declaration of the name of the current
scope, e.g.:
package Math::Complex
- Which can occur in the code of a module or a script.
- A module can be used, because it is a physical
'thing', but a package cannot.
- A module may contain several packages:

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of variable in perl?

1131


You want to download the contents of a url with perl. How would you do that?

928


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

1024


How to check the status of airplane mode (enable/disable) in perl for Android mobile?

3133


Who created perl?

968


Explain the difference between die and exit in perl?

926


How to implement a stack in Perl?

1084


Explain the functioning of conditional structures in perl.

1001


Does Perl have reference type?

1014


Explain goto name?

981


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

1053


How the interpreter is used in Perl?

992


What is the use of command “use strict”?

1085


How to code in perl to implement the tail function in unix?

985


How can memory be managed in Perl?

1120