<?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/7163" />

	<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>2004-03-30T11:53:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-03-30T11:53:03-04:00</updated>

		<published>2004-03-30T11:53:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35091#p35091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35091#p35091"/>
		<title type="html"><![CDATA[How to rearange data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35091#p35091"><![CDATA[
Heh, nice. Thanks for pointing this out user. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Mar 30, 2004 11:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2004-03-30T06:11:19-04:00</updated>

		<published>2004-03-30T06:11:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35070#p35070</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35070#p35070"/>
		<title type="html"><![CDATA[How to rearange data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35070#p35070"><![CDATA[
Yes. This provides a nice way to access variables dynamicly.<br><br>IE <br><div class="codebox"><p>Code: </p><pre><code>set ourvar "hello"set thisvar "ourvar"puts -stdout [set $thisvar]</code></pre></div>Mixed with the fact that Proc declarations will return the buffer of the last executed command, if no exclicit return is performed.<br><br>This is the precise reason you have to be careful if you are using RAW binds. Because if no return is used, the buffer from the last command is used. Thus.... you can often lose data because you forgot an explicit return.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Mar 30, 2004 6:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-29T14:50:39-04:00</updated>

		<published>2004-03-29T14:50:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35051#p35051</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35051#p35051"/>
		<title type="html"><![CDATA[How to rearange data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35051#p35051"><![CDATA[
ic interesting .. so in a way ur saying if the variable exists , and u set it again then it returns the last executed string or the last string that was set .. basicly its the same as return but not entirely .. so this wouldn't break a loop and still return a value .. example ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Mar 29, 2004 2:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-03-29T14:20:54-04:00</updated>

		<published>2004-03-29T14:20:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35050#p35050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35050#p35050"/>
		<title type="html"><![CDATA[How to rearange data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35050#p35050"><![CDATA[
<blockquote class="uncited"><div>As in is the same thing as in using "return" instead of "set" ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Nope...check the '<a href="http://tcl.tk/man/tcl8.5/TclCmd/proc.htm" class="postlink">proc</a>' manual page. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><blockquote class="uncited"><div>If the procedure doesn't execute an explicit return, then its return value is the value of the last command executed in the procedure's body.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Mar 29, 2004 2:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-03-29T13:57:59-04:00</updated>

		<published>2004-03-29T13:57:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35047#p35047</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35047#p35047"/>
		<title type="html"><![CDATA[How to rearange data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35047#p35047"><![CDATA[
As in is the same thing as in using "return" instead of "set" ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Mar 29, 2004 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-03-29T13:49:24-04:00</updated>

		<published>2004-03-29T13:49:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35046#p35046</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35046#p35046"/>
		<title type="html"><![CDATA[How to rearange data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35046#p35046"><![CDATA[
<blockquote class="uncited"><div><strong class="text-strong"><a href="http://tcl.tk/man/tcl8.5/TclCmd/set.htm" class="postlink">set</a></strong> varName ?<em class="text-italics">value</em>?<br><br>Returns the value of variable <em class="text-italics">varName</em>. If <em class="text-italics">value</em> is specified, then set the value of <em class="text-italics">varName</em> to <em class="text-italics">value</em>...</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Mar 29, 2004 1:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-29T10:35:44-04:00</updated>

		<published>2004-03-29T10:35:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35038#p35038</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35038#p35038"/>
		<title type="html"><![CDATA[How to rearange data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35038#p35038"><![CDATA[
TnX nice i am amazed that this doesn't give an error ..<br><blockquote class="uncited"><div>set out </div></blockquote>???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Mar 29, 2004 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-03-29T06:24:48-04:00</updated>

		<published>2004-03-29T06:24:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35035#p35035</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35035#p35035"/>
		<title type="html"><![CDATA[Did someone mention my name? :P]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35035#p35035"><![CDATA[
This is about 7 times faster than the above (for short strings) in my tclsh:<div class="codebox"><p>Code: </p><pre><code>proc reverse str {set out ""foreach c [split $str ""] {set out $c$out}set out}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Mar 29, 2004 6:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2004-03-29T05:10:54-04:00</updated>

		<published>2004-03-29T05:10:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35031#p35031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35031#p35031"/>
		<title type="html"><![CDATA[How to rearange data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35031#p35031"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc flipstring { s } {  set newstring ""  set length [string length $s]  while { [string length $newstring] != [string length $s] } {    set newstring "$newstring[string index $s [expr $length - 1]]"    incr length -1  }  return $newstring}</code></pre></div>there are better ways to do this so user, strikelight or ppslim might hit you up  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br><blockquote class="uncited"><div>% flip adcb<br>bcda<br>% time { flip adcb } 100<br>1015 microseconds per iteration</div></blockquote>maybe some native command does it for you but i assume not since you're asking<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Mon Mar 29, 2004 5:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-29T00:52:54-04:00</updated>

		<published>2004-03-29T00:52:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35026#p35026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35026#p35026"/>
		<title type="html"><![CDATA[How to rearange data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35026#p35026"><![CDATA[
i wana rearange a string backwards ex: adcb to bcda how would i do this ? without loozing data.<br><br>ive checked lsort but it seems that this command hasn't this option..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Mar 29, 2004 12:52 am</p><hr />
]]></content>
	</entry>
	</feed>
