Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Why we use "use lib $path"?



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

Post New Answer

More CGI Perl Interview Questions

What are the reasons that cookie server can’t handle multiple connections?

0 Answers  


How do you turn on the perl warnings?

0 Answers  


How does polymorphism work in perl? Give an example.

0 Answers  


Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

0 Answers  


Why we use "use lib $path"?

1 Answers  


What does cgi program store?

0 Answers  


How can you define “my” variables scope in Perl and how it is different from “local” variable scope?

0 Answers  


In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?

0 Answers  


Why is it hard to call this function: sub y { "because" } ?

0 Answers  


How to read multi lines from a file in perl?

0 Answers  


Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.

0 Answers  


What is it meants by '$_'?

0 Answers  


Categories