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

	<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>2006-03-23T13:39:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-03-23T13:39:07-04:00</updated>

		<published>2006-03-23T13:39:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61326#p61326</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61326#p61326"/>
		<title type="html"><![CDATA[Changing something toupper?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61326#p61326"><![CDATA[
To convert <em class="text-italics">second</em> to <strong class="text-strong">topupper</strong><div class="codebox"><p>Code: </p><pre><code>set second [string toupper $second]</code></pre></div><br>And<div class="codebox"><p>Code: </p><pre><code>set first [lindex [split $arg] 1]set second [lindex [split $arg] 2]</code></pre></div>is different than<div class="codebox"><p>Code: </p><pre><code>foreach {first second} [split $arg] {break}</code></pre></div>since the 2nd code takes the first and second words while the  1st takes the second and the third words. You need to start with index 0, so <em class="text-italics">first</em> is [lindex [split $arg] 0] and <em class="text-italics">second</em> is [lindex [split $arg] 1].<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Mar 23, 2006 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danko]]></name></author>
		<updated>2006-03-23T04:48:56-04:00</updated>

		<published>2006-03-23T04:48:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61310#p61310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61310#p61310"/>
		<title type="html"><![CDATA[Changing something toupper?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61310#p61310"><![CDATA[
How can I change <em class="text-italics">second</em> <strong class="text-strong">toupper</strong> before i write/echo/whatever to file/chan when using this?<div class="codebox"><p>Code: </p><pre><code>foreach {first second} [split $arg] {break} </code></pre></div> or<div class="codebox"><p>Code: </p><pre><code>set first [lindex [split $arg] 1]set second [lindex [split $arg] 2] </code></pre></div>(I belive the first one is faster code than the last one, correct?)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7471">Danko</a> — Thu Mar 23, 2006 4:48 am</p><hr />
]]></content>
	</entry>
	</feed>
