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 is the syntax used in Perl grep function?
What are the various perl data types based on the context?
What are the options that can be used to avoid logic errors in perl?
What are numeric operators in perl?
List the data types that Perl can handle?
What is the purpose of _package_ literal?
Explain join function in perl?
Comment on the scope of variables in perl.
What are prefix dereferencer?
Why do we use "use strict" in perl?
How will you create a file in perl?
Why Perl aliases are considered to be faster than references?
What are the different instances used in cgi overhead?
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.
Explain the difference between "my" and "local" variable scope declarations. ?