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 we can navigate the xml documents?
What are perl strings?
What are the various advantages and disadvantages of perl?
Write a program to decode the data in the form using cgi programming
Explain strftime() function in perl?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
What are some common methods to all handles in perl?
Why aren't Perl's patterns regular expressions?
How many loop control keywords are there in perl?
Why should I use the -w argument with my Perl programs?
What is the use of "stderr()"?
Explain what is perl language?
How can information be put into hashes?
What does `$result = f() .. g()' really return?
When would `local $_' in a function ruin your day?