Answer Posted / guest
If we are trying to add a module or library files in our
program using require or use statement then it will search
that module or library files in the Perl's default search path.
The statement use lib is used to add the directories to
default search path.
So if the module or library file is not located in the
Perl's default search path then it will find the library
files in the path we have given with the use lib $path.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is perl scripting?
How will you open a file in a write-only mode in perl?
Explain use of ‘my’ keyword in perl?
What is goto statement in perl?
What are perl strings?
What is the purpose of redo statement?
How can I display all array element in which each element will display on next line in perl ?
What is the difference between single (') and double (") quote in a string in perl?
What is the function of virtual documents in cgi programs?
Explain ivalue?
Explain lexical variables.
How do you set environment variables in perl?
Define say() function in perl?
How can the user execute a long command repeatedly without typing it again and again?
There are two types of eval statements i.e. Eval expr and eval block. Explain them.