I want a function to assign a new value to a global variable:
value = ""
function edit_value(v::String)
value = v
end
However, it does not assign the global value
the new value. Julia creates a new local variable value
inside the function.
How can I modify the global variable inside a function?