From: sairam MP Date: 2007-03-15T20:53:38+09:00 Subject: Re: Use as Lib Farrel Lifson wrote: > On 15/03/07, Purandhar sairam Mannidi wrote: >> How can I use a specific directory as the lib along with ruby library >> files???? >> can Any one reply me with class name or module name? >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> > > If you'd like to include a directory into the path ruby searches for > files you can use the -I command line prompt. So to add a directory > called 'lib' you'd write > ruby -Ilib program.rb > > Farrel Is there any way that we include in the script itself? like in "use FindBin qw{$RealBin}; use lib $RealBin;" which will find the present working directory and will include that in @ISA list. Sairam -- Posted via http://www.ruby-forum.com/.