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 |
How to sort dates in Perl ?
Explain string comparison operators in perl.
Write a cgi program to show the header part?
Explain the different types of data perl can handle.
How many types of variable in perl?
while(my($key, $value) = each(%hash) ) { print "$key => $value\n"; } my($key, $value); while(($key, $value) = each(%hash) ) { print "$key => $value\n"; } What is the different between these two code in case of "my" usage ?
What are the options that can be used to avoid logic errors in perl?
sort a word "system" in perl/shell without using built in functions output should be emssty
How can you use Perl warnings and what is the importance to use them?
Why does Perl not have overloaded functions?
How to open and read data files with Perl
Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical?