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 grooving and shortening of arrays?
Explain USE and REQUIREMENT statements?
What is perl pop array function?
Is there any way to add two arrays together?
Why we use CGI?
How do you find the length of an array?
Explain goto label?
What is boolean context?
Explain splicing of arrays?
Define dynamic scoping.
Comment on the scope of variables in perl.
Explain the difference between die and exit in perl?
What interface used in PERL to connect to database? How do you connect to database in Perl?
What syntax is used for grep() function?
Explain different types of perl operators.