I'm doing this:

$globvar=Array.new()
$globvar[0]="mygenericvalue"
localvar=$globvar
localvar[0]="mylocalvalue"
puts $globvar

And the result for $globvar is "mylocalvalue"

How can I assign to localvar only the value of $globvar and not the
memory possition??

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