how to add external modules' dir?

L

Lee NL

In Perl, there is default module directory, say C:\perl\lib;
C:\perl\site\lib,
and I can add more default module directory by editing the registry :
HKEY_LOCAL_MACHINE\SOFTWARE\PERL with
given string value Lib => "C:\OtherPM_Dir;C:\AnotherPM_Dir"

Is that similar way to do this in Ruby ? Any hints would highly appreciate!

Best regards,
Lee
 
C

come

Hi,

I know 3 ways to do it :

* Setting the env variable RUBYLIB
* Adding -I with the path to the command line "ruby ..."
* Updating the "$:" array variable within your program (try "ruby -e
'puts $:'")

Hope this help,
Come
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,318
Members
47,998
Latest member
GretaCjy4

Latest Threads

Top