Explain the difference between use and require?
Answer Posted / vinoth.g
The use statement works at compile time, require at run
time. So if you have a module that does a lot in a begin
block and you don't really need it in all cases, then it's
clever to "require" it there where you want to use it but
don't "use" it. So you don't have to wait for all that
initializations of that module in case you don't need it.
Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
How can arrays be tied?
What happens in dereferencing?
How to turn on Perl warnings? Why is that important?
Explain splicing of arrays?
When would `local $_' in a function ruin your day?
Explain chop?
Write a cgi program to show the header part?
Why to use perl?
how to connect cisco switch uisng perl script
What are the functions that can be performed using cgi program?
What is automatic error handling in perl?
How to replace perl array elements?
“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?
what are the strategies followed for multiple form interaction in cgi programs?
Explain substr function in perl?