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
Show the use of sockets for the server and client side of a conversation?
What does -> symbol indicates in Perl?
What are the options that can be used to avoid logic errors in perl?
List the data types that Perl can handle?
Write a program to show the process of spawning a child process
How to determine strings length in perl?
How to implement a stack in Perl?
How would you ensure the re-use and maximum readability of your perl code?
Explain arrays in perl.
What is a chomp() function in perl?
What is the use of -t?
What are the different ways to run cgi?
Which guidelines by Perl modules must be followed?
Why does Perl not have overloaded functions?
Explain lists ?