On 1/22/07, <b class="gmail_sendername"><a href="mailto:nheller@silcon.com">nheller@silcon.com</a></b> &lt;<a href="mailto:nheller@silcon.com">nheller@silcon.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It works well.<br>One question though:&nbsp;&nbsp;am I correct in assumming &quot;q&quot; is scalar and &quot;qw&quot; is<br>array?</blockquote><div><br>I hesitate to say yes, since the terms &quot;scalar&quot; and &quot;array&quot; are usually used to denote the context of an expression, and that is something being imposed from outside of the expression itself.
<br><br>Or, said another way, you could use either one in either context, although &quot;qw&quot; is pretty useless in scalar context. &quot;q&quot; is the same as a single quotation mark, just using a (probably) different character to delimit the string, so it can be used in either context. But it will always produce just a single (scalar) value.
<br><br>But if you don&#39;t want to dive into it that far, then the answer is yes. &quot;q&quot; produces a scalar; &quot;qw&quot; produces a list.<br><br>&nbsp; q/a b c/ is the same as q[a b c] is the same as &#39;a b c&#39;
<br>&nbsp; qq/a b c/ is the same as qq[a b c] is the same as &quot;a b c&quot;<br>
&nbsp; qw/a b c/ is the same as (&#39;a&#39;, &#39;b&#39;, &#39;c&#39;) is the same as split(/\s+/, &quot;a b c&quot;)<br><br></div></div>