From: Hal Fulton Date: 2004-08-31T20:14:03+09:00 Subject: Re: I'm confused about $LOAD_PATH tad.bochan@bnpparibas.com wrote: > $LOAD_PATH = $LOAD_PATH << "mydir" > $LOAD_PATH = $LOAD_PATH.unshift "mydir" These above won't work, but the below will: $LOAD_PATH << "mydir" $LOAD_PATH.unshift "mydir" Ruby distinguishes greatly between variables and the objects they refer to. In the former case, you're trying to make the variable refer to a different object, which won't work for this variable. In the latter case, you're altering the object to which the variable refers. Does that help? Hal