@$hashref{@array};
One thing I remember finding useful in understanding
this sort of stuff is that the sigils (@, $, etc.) are more
binding (have a higher precedence, as it were), than
subscript parens. So you deal with them first.
So @ followed by other sigils is going to end up with
a bunch of
On Jun 27, Peter Cline said:
>After studying examples in "Effective Perl Programming" I devised the
>following working code snippet:
>
>@people{@newkeys} = @$contact{sort keys %$contact};
All a slice is, is a list of elements of the structure.
@array[1,3,5]
is
($array[1], $array[3], $arr
After studying examples in "Effective Perl Programming" I devised the
following working code snippet:
@people{@newkeys} = @$contact{sort keys %$contact};
I am trying to understand exactly how and why it works.
This appears in a subroutine that is passed a hash reference ($contact)
@newkeys is d