<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/17304" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2009-11-09T12:42:11-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/17304</id>

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-11-09T12:42:11-04:00</updated>

		<published>2009-11-09T12:42:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90860#p90860</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90860#p90860"/>
		<title type="html"><![CDATA[Manipulating multiple variables simultaneously]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90860#p90860"><![CDATA[
I suppose you could use upvar for this, but otherwize user's suggestion should do just well...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Nov 09, 2009 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-11-09T10:28:32-04:00</updated>

		<published>2009-11-09T10:28:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90859#p90859</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90859#p90859"/>
		<title type="html"><![CDATA[Manipulating multiple variables simultaneously]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90859#p90859"><![CDATA[
Thanks!<br><br>Though I feel a bit of a fool not managing to work that one out myself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Mon Nov 09, 2009 10:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2009-11-09T09:59:08-04:00</updated>

		<published>2009-11-09T09:59:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90857#p90857</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90857#p90857"/>
		<title type="html"><![CDATA[use set]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90857#p90857"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set $var [string trim [set $var] ^]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Nov 09, 2009 9:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-11-09T09:12:15-04:00</updated>

		<published>2009-11-09T09:12:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90856#p90856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90856#p90856"/>
		<title type="html"><![CDATA[Manipulating multiple variables simultaneously]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90856#p90856"><![CDATA[
I want to trim multiple variables in a single line of code. For example, trimming the caret symbol (^) from the start and end of the variables a, b, c, d, e, f as below :-<br><div class="codebox"><p>Code: </p><pre><code>foreach var {a b c d e f} {set $var [string trim $$var ^]}</code></pre></div>The second $ in $$var doesn't get substituted. It behaves as if I had used ${$var}. Is there any 'neat/clever' way to do this without resorting to the following code :-<br><div class="codebox"><p>Code: </p><pre><code>foreach var {a b c d e f} {set $var [string trim $[subst -nocommands -nobackslashes $var] ^]}</code></pre></div>The problem being any dollar symbol in any one of more of the variable values will probably break the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Mon Nov 09, 2009 9:12 am</p><hr />
]]></content>
	</entry>
	</feed>
