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 |
Explain 'grep' function.
Why do you use only Perl when there a lot of more languages available in market like C, Java?
How does a “grep” function perform?
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.
What is perl shift array function?
What do you mean by context of a subroutine?
Which feature of perl provides code reusability?
How can I display all array element in which each element will display on next line in perl ?
What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)
There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"
What is perl unshift array function?
Can inheritance be used in perl? Explain with the help of an example.