what is the difference between require and use in perl?
Answer Posted / jayakumar.b
use:
* Object Verification will happen @ Compile Time.
* File will have extention of .pm
* Module location will be set by @ISA Variable.
require:
* Object Verification will happen @ Run TIme.
* Method can be used from and .pm or .pl file.
* Absolute path to be given, if file located in different
dir.
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What is cpan in perl?
What does next statement do in perl?
How to open a directory in perl?
What are scalar data and scalar variables?
Differences between die and exit.
What are prefix dereferencer?
Why to use perl?
How can information be put into hashes?
What are perl variables?
What is perl dbi?
you are required to replace a char in a string and store the number of replacements. How would you do that?
Explain split function in perl?
Explain the meaning of subroutine?
Show the use of sockets for the server and client side of a conversation?
What are the different types of perl operators?