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 and what are closures implemented in perl?
What is the use of now constructor in perl?
What are the advantages of programming in perl?
What is the difference between use and require in perl programming?
Define dynamic scoping.
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
What does -> symbol indicates in Perl?
Explain what is perl language?
Explain use of ‘my’ keyword in perl?
Explain cpan?
How does polymorphism work in perl? Give an example.
How to convert arrays into a string in perl?
How do you set environment variables in perl?
Explain substr function in perl?
How to open a directory in perl?