Which functions in Perl allows you to include a module file or a module and what is the difference between them?



Which functions in Perl allows you to include a module file or a module and what is the difference b..

Answer / Rahul Bhatia

The 'use' function is used to import a Perl module, while the 'require' function loads (includes) a module or module file. The main difference is that 'use' sets up some default actions for the module, while 'require' simply loads it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

What is qq (double q)operator in perl?

1 Answers  


Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?

1 Answers  


What does Perl do if you try to exploit the execve(2) race involving setuid scripts?

1 Answers  


How to convert arrays into a string in perl?

1 Answers  


what is Chop & Chomp function does?

1 Answers  


How to copy a file in perl?

1 Answers  


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

1 Answers  


Explain the difference between my and local?

2 Answers  


You want to download the contents of a url with perl. How would you do that?

1 Answers  


Create a function that is only available inside the scope where it is defined ?

1 Answers  


What is an interpolation in perl?

1 Answers  


How do I pass a command line argument in perl?

1 Answers  


Categories