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 are perl strings?
You want to read command-line arguements with perl. How would you do that?
Write syntax to use grep function?
Explain perl. When do you use perl for programming?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
You want to concatenate strings with perl. How would you do that?
Explain the arguments for perl interpreter.
What is the closure in PERL?
What is eval function in perl?
What does the q{ } operator do?
Is there any way to add two arrays together?
How do find the length of an array?
What $! In perl?
How many types of primary data structures in Perl and what do they mean?
What is the usage of -i and 0s options?