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
What is the use of now constructor in perl?
What value is returned by a lone `return;’ statement?
How and what are closures implemented in perl?
Enlist the advantages of using c over perl?
When do you use perl programming?
how to connect cisco switch uisng perl script
What is a chop() function in perl?
What is qq (double q)operator in perl?
Explain the internal working of cgi
What is boolean context?
Show the use of sockets for the server and client side of a conversation?
What are the steps involved in configuring a server using cgi programming?
Why -w argument is used with perl programs?
What does `$result = f() .. g()' really return?
How can memory be managed in Perl?