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
How many types of variable in perl?
You want to download the contents of a url with perl. How would you do that?
How can you use Perl warnings and what is the importance to use them?
How to check the status of airplane mode (enable/disable) in perl for Android mobile?
Who created perl?
Explain the difference between die and exit in perl?
How to implement a stack in Perl?
Explain the functioning of conditional structures in perl.
Does Perl have reference type?
Explain goto name?
What are the arguments and what do they mean in perl programming?
How the interpreter is used in Perl?
What is the use of command “use strict”?
How to code in perl to implement the tail function in unix?
How can memory be managed in Perl?