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


Please Help Members By Posting Answers For Below Questions

What is perl programming?

738


Explain tk?

665


What does the’$_’ symbol mean?

733


Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)

760


What is use of ‘->’ symbol?

726






how to extract pin_code,phone_number,year from text file using regular expressions in perl

2012


Explain ivalue?

698


How do you you check the return code of a command in perl?

724


How interpreter is used in perl?

663


What does the q{ } operator do?

657


What is the main function of cookie server?

701


How do you give functions private variables that retain their values between calls?

706


Elaborate on perl bite-wise operators.

666


List the prefix dereferencer in Perl.

730


How to code in perl to implement the tail function in unix?

683