From: Hans Mackowiak Date: 2011-11-08T14:32:48+09:00 Subject: Re: 'require' problem Justin Collins wrote in post #1030715: > On 11/05/2011 12:23 AM, Kaye Ng wrote: >> Ryan Davis wrote in post #1030259: >> >>> ruby -I. your_script.rb >> Thanks Ryan, but like I said, I would like to use just *require >> 'my_script'* >> >> =) > > Not sure why the previous suggestions are not sufficient, but you can > add > > $LOAD_PATH.unshift "." > > prior to using 'require' > > -Justin but manipulating LOAD_PATH only to use require again instat of require_relative is an VERY BIG security risk -- Posted via http://www.ruby-forum.com/.