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
How to read file into hash array ?
What is perl scripting?
Explain tk?
Give an example of using the -n and -p option.
Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.
What is the closure in PERL?
Why to use perl scripting?
How do I replace every TAB character in a file with a comma?
How do I send e-mail from a Perl/CGI program on a Unix system?
What package you use to create a windows services?
Explain what is lvalue?
you are required to replace a char in a string and store the number of replacements. How would you do that?
Show the use of sockets for the server and client side of a conversation?
What is perl dbi?
What does perl do in linux?