what is the difference between require and use in perl?

Answer Posted / rani

use:
1-its compile time concept & refresh the namespace for
different package loading.

Require:
it is run time concept & does not refresh the namespace for
different package loading.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is lvalue?

611


What is stdin in perl?

554


How to concatenate strings with perl?

480


You want to empty an array. How would you do that?

486


What interface used in PERL to connect to database? How do you connect to database in Perl?

540






What are the advantages of perl programming?

542


What are the different ways to run cgi?

502


Where do we require ‘chomp’ and what does it mean?

522


“Perl regular expressions match the longest string possible”. What is the name of this match?

535


how to get back up from private character editor which is saved in the format of .udf

1857


What is the syntax used in Perl grep function?

606


“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?

539


Distinguish my and local?

526


What is the difference between localtime() and gmtime() functions?

552


Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

476