From: Johan Holmberg Date: 2001-12-08T22:45:55+09:00 Subject: [ruby-talk:27928] Re: "load" without looking in $LOAD_PATH ? On Sat, 8 Dec 2001, David Alan Black wrote: > > On Sat, 8 Dec 2001, Johan Holmberg wrote: > > > But couldn't I change $LOAD_PATH, and set it to just "." before > > calling "load" ??? > > You can add "." to the front of $LOAD_PATH: > > $LOAD_PATH.unshift(".") > > so that the cwd will be searched first. > Yes, but that would just give another twist of undesired behaviour: - if the local file was missing, I could still "accidentally" get a file from somewhere else in the $LOAD_PATH - the change would affect further require/load at other places in other modules. Way to *global*. I want the different search-behaviour of "load" to be applied locally, just for one particular call. /Johan Holmberg