<?xml version="1.0" encoding="windows-1252"?>
<node id="564806" title="Re: Secret Perl Operators: the boolean list squash operator, x!!" created="2006-07-31 13:07:24" updated="2006-07-31 09:07:24">
<type id="11">
note</type>
<author id="144850">
rinceWind</author>
<data>
<field name="doctext">
&lt;p&gt;This is cool!&lt;/p&gt;
&lt;p&gt;Sadly, in most cases where I am doing conditionals, I am using optional hash keys with &lt;code&gt;exists&lt;/code&gt;. Unfortunately, these would autovivify under &lt;code&gt;x!!&lt;/code&gt;, which is an undesirable side effect. Ifs or ternaries work, but I can't see a way of stopping the autovivification with the "boolean list squash" operator. Can anybody suggest how to solve my variant?&lt;/p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-144850"&gt;
&lt;p&gt;&lt;small&gt;--&lt;br /&gt;&lt;br /&gt;Oh Lord, won’t you burn me a Knoppix CD ?&lt;br /&gt;
My friends all rate Windows, I must disagree.&lt;br /&gt;
Your powers of persuasion will set them all free,&lt;br /&gt;
So oh Lord, won’t you burn me a Knoppix CD ? &lt;br /&gt; &lt;em&gt;(Missquoting Janis Joplin)&lt;/em&gt;&lt;/small&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
564792</field>
<field name="parent_node">
564792</field>
</data>
</node>
