From: Nick Date: 2003-03-27T07:10:04+09:00 Subject: Regular Expresison in Method Problem Hi, Why does the following give me a problem: def calc(inValue) if(inValue =~ /^([-+]?[0-9]+)([CF])$/) InputValue = $1 InputType = $2 end end calc('22C') Error reported is: RegExp.rbw:24: dynamic constant assignment InputType = $2 Thanks, Nick.