<?xml version="1.0" encoding="windows-1252"?>
<node id="564940" title="Re: Secret Perl Operators: the boolean list squash operator, x!!" created="2006-08-01 03:39:24" updated="2006-07-31 23:39:24">
<type id="11">
note</type>
<author id="491819">
ioannis</author>
<data>
<field name="doctext">
Instead of using the &lt;b&gt;x&lt;/b&gt; operator, we could have used the
the &lt;b&gt;&amp;&amp;&lt;/b&gt; operator. The advantage here is  that it codes simpler,
and the disadvantage is it has no movable parts (since it is not an array).

&lt;code&gt;
no strict; no warnings;

my $part = 'http://example.net/app'
           . ($admin           &amp;&amp;  $is_admin_link)
           . (defined $subsite &amp;&amp;  $subsite)
           . $mode
           . (defined $id      &amp;&amp;  $id)
           . (defined $submode &amp;&amp;  $submode)
           ;
print $part;
&lt;/code&gt;</field>
<field name="root_node">
564792</field>
<field name="parent_node">
564792</field>
</data>
</node>
