Arun kant sharma wrote in post #1133323:
> It would be
> ENV['PATH'] = '/newpath' + ENV['PATH']
> and it is as easy as it can get. Not aware about any method like +=.

It isn't a method; `a += b' is syntactic sugar for `a = a + b'

And you forgot the path separator:

  ENV['PATH'] = '/newpath:' + ENV['PATH']

-- 
Posted via http://www.ruby-forum.com/.