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

What are the various file operations in perl. Explain with example.

953


Which guidelines by Perl modules must be followed?

1021


What are the advantages of perl programming?

998


How will you open a file in a write-only mode in perl?

953


What is the use of -t?

975


Explain which feature of PERL provides code reusability?

1218


Explain '->' in perl?

932


What is the use of '>>' in perl?

1017


Explain goto label, goto name, and goto expr?

923


What is perl dbi?

894


Explain gmtime() function in perl?

981


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

953


Explain 'grep' function.

986


Why to use perl scripting?

1012


Why is it hard to call this function: sub y { "because" } ?

963