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 to compare two strings in perl?
What is the difference between die and exit in perl?
How to renaming a file in perl programming?
What is the use of now constructor in perl?
How do I read command-line arguments with Perl?
How to merge two arrays in perl?
Explain what is the scalar data and scalar variables in Perl?
Difference between the variables in which chomp function work ?
How many types of primary data structures in Perl and what do they mean?
Mention the difference between die and exit in Perl?
How can you use Perl warnings and what is the importance to use them?
How do you give functions private variables that retain their values between calls?
How to get help for perl?
What is the use of –w?
What is a chomp() function in perl?