note
chip
I'm sorry, Alakaboo, you didn't understand what I wrote at all.
<p>
Given the precedence rules, <code>@$x->{y}</code> is <i>not</i>
the same as <code>@{$x->{y}}</code>. Rather, it's the same as
<code>(@$x)->{y}</code>. Look at the output of -Dx and -Dts
if you don't believe me.
<p>
In fact, now that I try a simple test, the original code
<i>can't</i> work:
<code>
$ perl -le '$x={y=>[1]}; print @$x->{y}'
Not an ARRAY reference at -e line 1.
$ perl -le '$x={y=>[1]}; print @{$x->{y}}'
1
</code>
<p>
So let's see the full code to the original, OK?
<p>
-- Chip Salzenberg, Free-Floating Agent of Chaos
24045
24604