M
Mario Ruiz
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
$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