What is the difference between use and require in perl programming?



What is the difference between use and require in perl programming?..

Answer / Ramji Shukla

require(): It loads a Perl script as a module and makes its functions available in the current scope. use(): It loads a Perl script as a module and performs additional actions such as importing functions and setting up packages.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

Define dynamic scoping.

1 Answers  


How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.

1 Answers  


How to add elements in a hash in perl?

1 Answers  


How many types of variable in perl?

1 Answers  


What is a chomp() function in perl?

1 Answers  


How to read file into hash array ?

1 Answers  


Write a simple regular expression to match an IP address, e-mail address, city-state-zipcode combination.

15 Answers  


What are perl array functions?

1 Answers  


Explain the arguments for perl interpreter.

1 Answers  


Explain the difference between "my" and "local" variable scope declarations. ?

1 Answers   HCL,


Can inheritance be used in perl?

1 Answers  


How to sort dates in Perl ?

1 Answers  


Categories