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
What does `$result = f() .. g()' really return?
Explain use of ‘my’ keyword in perl?
How to convert strings into an array in perl?
What are the reasons that cookie server can’t handle multiple connections?
What is lexical variable in perl?
Is there any way to add two arrays together?
What are stdin, stdout and stderr?
What is automatic error handling in perl?
How many types of operators are used in the Perl?
Is perl a case sensitive language?
Explain a tell function in perl?
How to read a single line from a file in perl?
What are the various file operations in perl. Explain with example.
What rules must be followed by modules in perl.
List the files in current directory sorted by size ?