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
We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?
Differentiate use and require?
Explain what is lvalue?
How to sort arrays in perl?
Explain perl.
What are stdin, stdout and stderr?
Explain ivalue in perl?
What are the logical operators used for small scale operations?
Which feature of perl provides code reusability?
Explain goto name?
you are required to replace a char in a string and store the number of replacements. How would you do that?
What is perl dbi?
What are the functions that can be performed using cgi program?
How to open and read data files with Perl
How do I print the entire contents of an array with Perl?