From: "Jesús Gabriel y Galán" Date: 2008-09-01T17:19:25+09:00 Subject: Re: How to make a string upcase? On Mon, Sep 1, 2008 at 10:07 AM, Zhao Yi wrote: > I want to change a string to upcase like below: > > name=@value.upcase > > But got this error: dynamic constant assignment irb(main):001:0> @value = "test" => "test" irb(main):002:0> name=@value.upcase => "TEST" Can you post more code? The above snippet with a test string for @value doesn't give any error, so it must be something else... Jesus.