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
How do I pass a command line argument in perl?
How to read a single line from a file in perl?
Which functions in Perl allows you to include a module file or a module and what is the difference between them?
Explain subroutine in perl?
What is qq (double q)operator in perl?
Give an example of using the -n and -p option.
Explain what is lvalue?
what is perl language?
Write a program that shows the distinction between child and parent process?
What is the difference between die and exit in perl?
Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?
Explain perl. What are the advantages of programming in perl?
Explain subroutine?
What are the arguments and what do they mean in perl programming?
What are the steps involved in configuring a server using cgi programming?