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 the meaning of closure in perl.
What happens to objects lost in "unreachable" memory, such as the object returned by Ob->new() in `{ my $ap; $ap = [ Ob->new(), $ap ]; }' ?
What is the importance of perl warnings? How do you turn them on?
Distinguish my and local?
Which functions in perl allows you to include a module file. State their differences.
What are the logical operators used for small scale operations?
Show the use of sockets for the server and client side of a conversation?
what is the difference between java and cgi?
What are the steps involved when the cgi program starts running?
What are perl strings?
Explain substr function in perl?
What are different data types that perl supports. Elaborate on them.