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

	<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-07-29T08:47:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-07-29T08:47:18-04:00</updated>

		<published>2004-07-29T08:47:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39213#p39213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39213#p39213"/>
		<title type="html"><![CDATA[Passing arguments to a perl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39213#p39213"><![CDATA[
<blockquote class="uncited"><div>ayup... that works well enough.  *places dunce cap on head and sits in corner*</div></blockquote>no need for that cap...it's not that obvious <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>eval is dangerous if you dont know what you're doing. You need an extra layer of escaping for parts that are meant to be passed on without substitutions. I guess I should have pointed this out in the first place...<div class="codebox"><p>Code: </p><pre><code>set fileName {[die].now}eval exec $fileName $args# ...will invoke 'die'eval [list exec $fileName] $args# ...will do the right thing because the brackets are escaped by 'list'</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Jul 29, 2004 8:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-07-29T05:04:34-04:00</updated>

		<published>2004-07-29T05:04:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39208#p39208</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39208#p39208"/>
		<title type="html"><![CDATA[Passing arguments to a perl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39208#p39208"><![CDATA[
ayup... that works well enough.  *places dunce cap on head and sits in corner*<p>Statistics: Posted by Guest — Thu Jul 29, 2004 5:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-07-28T12:31:30-04:00</updated>

		<published>2004-07-28T12:31:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39173#p39173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39173#p39173"/>
		<title type="html"><![CDATA[Passing arguments to a perl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39173#p39173"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>eval exec blah $args</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jul 28, 2004 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-07-28T08:52:11-04:00</updated>

		<published>2004-07-28T08:52:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39168#p39168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39168#p39168"/>
		<title type="html"><![CDATA[Passing arguments to a perl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39168#p39168"><![CDATA[
Since TCL couldn't do what I wanted (blasphemy, I know), I made a perl script to do the grunt work... but I'm running into a problem... assuming that $args contains a list of argmunents like {-a 3 -b 4 -c 6}, then I do the following:<br><br>set output [exec something.pl $args]<br><br>then the perl program is passed one long argument... not seperated ones.<br>I've tried using 'list', 'join', 'concat', and a few others, but I can't get it right.. even when I use 'join', it seems to escape the spaces to make it one long string.<br><br>Can something help point out the (un)obvious answer to this?<p>Statistics: Posted by Guest — Wed Jul 28, 2004 8:52 am</p><hr />
]]></content>
	</entry>
	</feed>
