Why we use "use lib $path"?
Answer / 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 |
What are the reasons that cookie server can’t handle multiple connections?
How do you turn on the perl warnings?
How does polymorphism work in perl? Give an example.
Explain perl. When do you use perl for programming? What are the advantages of programming in perl?
Why we use "use lib $path"?
What does cgi program store?
How can you define “my” variables scope in Perl and how it is different from “local” variable scope?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
Why is it hard to call this function: sub y { "because" } ?
How to read multi lines from a file in perl?
Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.
What is it meants by '$_'?