<?xml version="1.0" encoding="windows-1252"?>
<node id="946430" title="Re^2: Range Operator in If Statement" created="2012-01-05 11:00:56" updated="2012-01-05 11:00:56">
<type id="11">
note</type>
<author id="258724">
Not_a_Number</author>
<data>
<field name="doctext">
&lt;blockquote&gt;I'm SURE there is a 100 different ways to do this...&lt;/blockquote&gt;
&lt;p&gt;Here's one way to assign to &lt;c&gt;$bundle&lt;/c&gt; that requires a lot less typing. Replace your call to &lt;c&gt;get_bundle&lt;/c&gt; and the sub itself with:&lt;/p&gt;
&lt;c&gt;$bundle = [ 'A' .. 'F' ]-&gt;[ ( $ref_number - 1 ) / 8 ];&lt;/c&gt;
&lt;p&gt;Update: Removed unnecessary parentheses around the arrayref.&lt;/p&gt;</field>
<field name="root_node">
946284</field>
<field name="parent_node">
946417</field>
</data>
</node>
