From: David Alan Black Date: 2001-09-18T09:45:39+09:00 Subject: [ruby-talk:21298] Re: nested require files need path internally Hello -- On Tue, 18 Sep 2001, Bob Gustafson wrote: > -- Perhaps the 'require' file processing should first look for a file in the > local directory with the exact name given, then if a file is not found, go to > the system directory to look for a file with the same basename and .rb > extension? 'require' will look in the order specified in the $: global variable By default, "." is the last element in $:. If you want, you can do: $:.unshift $:.pop to move it to the front. You could also do: require "./date" David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav