<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> In fact, it is the other way around :( If you say</p><p>procname $a</p><p>You are passing in the value, and if you say</p><p>procname a</p><p>You are passing in the string "a", and procname will use upvar to scoop the variable $a out of your scope and modify it. The docs make this consistently clear by naming parameters either "stringvalue" or "stringvariable", but I had to figure out that pattern on my own.</p>