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.