Explain the difference between use and require?
Answer Posted / gopi sreekanth
use can take a bareword and require doesnot while accessing
module
use is used in compile time ie all code is parsed before
program run where as require is used in run time. So if
there is much code in initialization include that in use
rather than require
use supports import method by default and require doesnt
support
Inside use default import method will be present. BEGIN {
require Module; }
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are the logical operators used for small scale operations? Explain them briefly.
Explain the functioning of conditional structures in perl.
Define perl scripting?
What is perl push array function?
What is the different between array and hash in perl programming?
How do I sort a hash by the hash value?
Which functions in perl allows you to include a module file.
Explain string comparison operators in perl.
Why to use perl?
How and what are closures implemented in perl?
Why Perl aliases are considered to be faster than references?
How can you call a subroutine and identify a subroutine?
How to connect to SQL server through Perl?
List the prefix dereferencer in Perl.
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?