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 will you open a file in read-only mode in perl?
what is the function of Return Value?
What is the use of -n and -p options?
What is the importance of perl warnings?
What are the various file operations in perl. Explain with example.
How many types of operators are used in the Perl?
Explain ivalue in perl?
How do I send e-mail from a Perl/CGI program on a Unix system?
What is posix in perl?
Write a program that explains the symbolic table clearly.
Why Perl aliases are considered to be faster than references?
What does -> symbol indicates in Perl?
Which of these is a difference between Perl and C++ ?
Which guidelines by Perl modules must be followed?
What is epoch time in perl?