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

	<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-11T15:47:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-11T15:47:39-04:00</updated>

		<published>2004-03-11T15:47:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34485#p34485</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34485#p34485"/>
		<title type="html"><![CDATA[problen with lreplace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34485#p34485"><![CDATA[
np u can also use string map check out the manual for string map<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Mar 11, 2004 3:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Careto]]></name></author>
		<updated>2004-03-08T13:25:45-04:00</updated>

		<published>2004-03-08T13:25:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34365#p34365</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34365#p34365"/>
		<title type="html"><![CDATA[problen with lreplace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34365#p34365"><![CDATA[
corrected with:<br><div class="codebox"><p>Code: </p><pre><code>set modfile [open index.php "r"]set todo [read -nonewline $modfile]close $modfileset lee [split $todo "\n"]regsub -all "&lt;/table&gt;&lt;p&gt;" $lee "" lee</code></pre></div>thanks Ofloo<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4642">Careto</a> — Mon Mar 08, 2004 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Careto]]></name></author>
		<updated>2004-03-07T15:36:07-04:00</updated>

		<published>2004-03-07T15:36:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34341#p34341</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34341#p34341"/>
		<title type="html"><![CDATA[problen with lreplace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34341#p34341"><![CDATA[
not work, error<br><blockquote class="uncited"><div>bad index "&lt;/table&gt;": must be integer or end?-integer?</div></blockquote>index it must of being numerical?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4642">Careto</a> — Sun Mar 07, 2004 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-07T14:57:20-04:00</updated>

		<published>2004-03-07T14:57:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34338#p34338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34338#p34338"/>
		<title type="html"><![CDATA[problen with lreplace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34338#p34338"><![CDATA[
maybe change it to 0 end if its only one element cause, from what i understand is that the list doesn't contain more then 1 element .. so what is it that u wana replace ??<br><br>from what i understand ur using it wrong ..<br><blockquote class="uncited"><div>set lee [lreplace $lee $borra1 $borra1]<br><br>=&gt; set lee [lrepace $lee 1 2 $borra1]</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 07, 2004 2:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Careto]]></name></author>
		<updated>2004-03-07T13:17:32-04:00</updated>

		<published>2004-03-07T13:17:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34336#p34336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34336#p34336"/>
		<title type="html"><![CDATA[problen with lreplace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34336#p34336"><![CDATA[
it does not work, gives the following error me:<br><div class="codebox"><p>Code: </p><pre><code>set borra1 "&lt;/table&gt;"set modfile [open index.php "r"]set todo [read -nonewline $modfile]close $modfileset lee [split $todo "\n"]set lee [lreplace $borra1 1 2 $borra1]set modfile [open $modfile "w"]puts $modfile [join $lee "\n"]close $modfile</code></pre></div>error: Tcl error [encuesta]: list doesn't contain element 1<br><br>what I want is that in the file, borra1 is eliminated, is to say &lt;/table &gt; since she is one of the part of the end of the file.  thanks of all way<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4642">Careto</a> — Sun Mar 07, 2004 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-07T12:53:36-04:00</updated>

		<published>2004-03-07T12:53:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34334#p34334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34334#p34334"/>
		<title type="html"><![CDATA[problen with lreplace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34334#p34334"><![CDATA[
i think its correct me if i am wrong eh <br>from what i remember<br><div class="codebox"><p>Code: </p><pre><code>lreplace $arg 1 2 $args</code></pre></div>if u wana wana replace the the seconds argument of $arg with $args<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 07, 2004 12:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Careto]]></name></author>
		<updated>2004-03-07T10:17:29-04:00</updated>

		<published>2004-03-07T10:17:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34327#p34327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34327#p34327"/>
		<title type="html"><![CDATA[problen with lreplace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34327#p34327"><![CDATA[
then not like thus causing that it says to me to that line belongs borra1 and being able to erase that line of the file.<br><div class="codebox"><p>Code: </p><pre><code>set borra1 "&lt;/table&gt;"set modfile [open index.php "r"]set todo [read -nonewline $modfile]close $modfileset lee [split $todo "\n"]set lee [lreplace $lee $borra1 $borra1]set modfile [open $modfile "w"]puts $modfile [join $lee "\n"]close $modfile</code></pre></div>but error: bad index "&lt;/table&gt;": must be integer or end?-integer?<br><br>how I can know to that I number of line belongs?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4642">Careto</a> — Sun Mar 07, 2004 10:17 am</p><hr />
]]></content>
	</entry>
	</feed>
