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 know whether a key exists or not in perl?
Explain lists and ivalue?
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
Is perl a case sensitive language?
What are the purpose of close(), getc() and read() functions?
What is 'rollback' command in perl?
Does Perl have reference type?
Write a program that shows the distinction between child and parent process?
Explain cpan?
How do I sort a hash by the hash key?
What is the importance of perl warnings?
What is it meants by '$_'?
How can we create perl programs in unix, windows nt, macintosh and os/2 ?
What are perl variables?
What is stdin in perl?