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 a die() function do in perl?
What is use of ‘->’ symbol?
What are the logical operators used for small scale operations?
How do I do fill_in_the_blank for each file in a directory?
Explain grooving and shortening of arrays and splicing of arrays?
Does Perl have objects? If yes, then does it force you to use objects? If no, then why?
Explain perl. What are the advantages of programming in perl?
What are the different ways to run cgi?
Explain goto expr?
How can the user execute a long command repeatedly without typing it again and again?
What are the two ways to get private values inside a subroutine?
What are scalars?
Differentiate between use and require, my and local, for and foreach and exec and system
Explain lists and ivalue?
Explain subroutine in perl?