<?xml version="1.0" encoding="windows-1252"?>
<node id="790511" title="Re^5: Mini-Tutorial: Scalar vs List Assignment Operator" created="2009-08-21 21:23:18" updated="2009-08-21 21:23:18">
<type id="11">
note</type>
<author id="691124">
dec</author>
<data>
<field name="doctext">
&lt;blockquote&gt;It's not&lt;/blockquote&gt;

&lt;p&gt;Question: what is the point in writing a tutorial explaining the difference between list and scalar contexts?
&lt;p&gt;Answer: so that people who don't know the difference can gain some enlightenment.

&lt;p&gt;Question: Besides poring over man pages or searching the Internet, what other way is there to gain an understanding of when a list context is implied and when a scalar context is implied&lt;/p&gt;
&lt;p&gt;Answer: write a sub that calls wantarray and divine the context directly&lt;/p&gt;

&lt;p&gt;Have I made my point?</field>
<field name="root_node">
790129</field>
<field name="parent_node">
790356</field>
</data>
</node>
