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
You want to download the contents of a url with perl. How would you do that?
What does last statement do in perl?
What does delete function do in perl?
What does 'do' statement do in perl?
what is Perl one liner?
Explain perl. When do you use perl for programming?
What are the benefits of perl in using it as a web-based application?
what is Polymorphism in Perl?
What is the use of -n and -p options?
What can be done for efficient parameter passing in perl? Explain.
Differentiate between arrays and list in perl.
what is the difference between java and cgi?
How many types of variable in perl?
How to create a package?
List the prefix dereferencer in Perl.