<?xml version="1.0" encoding="windows-1252"?>
<node id="517123" title="Re: Using IF and OR, I'm sure there is a better way" created="2005-12-15 20:40:19" updated="2005-12-15 15:40:19">
<type id="11">
note</type>
<author id="117983">
robin</author>
<data>
<field name="doctext">
In Perl 5.10, you'll be able to do:
&lt;code&gt;
    use feature '~~';
    if ($variable ~~ [1,2,3]) { ... }
&lt;/code&gt;
which will indeed short-circuit.
&lt;p&gt;
(I'm backporting the Perl 6 "smart match" operator to Perl 5.)</field>
<field name="root_node">
516797</field>
<field name="parent_node">
516797</field>
</data>
</node>
