Explain the difference between use and require?
Answer Posted / kush
Use :
1. The method is used only for the modules(only to include
.pm type file)
2. The included objects are varified at the time of compilation.
3. No Need to give file extension.
Require:
1. The method is used for both libraries and modules.
2. The included objects are varified at the run time.
3. Need to give file Extension.
Is This Answer Correct ? | 38 Yes | 6 No |
Post New Answer View All Answers
Explain the difference between declarations of 'my' and 'local' variable scope in perl?
Explain the execution of a program in perl.
Which feature of perl provides code reusability?
Explain splicing of arrays?
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
How do I read command-line arguments with Perl?
How we can navigate the xml documents?
What is perl? What is the basic command to print a string in perl?
Write a program that shows the distinction between child and parent process?
What's the difference between /^Foo/s and /^Foo/?
Explain the meaning of perl one-liner?
What are the various uses of perl?
Define say() function in perl?
What are perl array functions?
What is the use of -t?