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 |
In CPAN module, name an instance you use.
How to concatenate strings in perl?
what are the two ways to get private values inside a subroutine or block?
write a script to display mirror image of a entered value and also check whether Palindrome
What is the difference between $array[1] and @array[1]?
Explain the difference between "my" and "local" variable scope declarations. ?
Mention what is cpan?
Perl regular expressions are greedy" what does this mean?
what is the difference b/w coldfusion MX 6 and Coldfusion MX 7?
what is the meaning of rigging?
What does the q{ } operator do?
How do you debug a Perl scripting ( at the compile time error or run time error) in Unix environment ?