U
Unknown Poster
I've read this section (page 253 of the 3rd edition of Programming Perl)
enough to confuse myself quite nicely.
One sentence reads, "If the next thing after the arrow is a bracket or a
brace, the left operand is treated as a reference to an array or hash,
respectively ..."
I just don't see how this code, and its explanation, square with that quote:
print $array[3]->{"English"}->[0];
" ... the fourth element of @array is intended to be a hash reference ..."
Isn't it the fourth element of the array referenced by (the poorly named)
$array ?
When there is more than one arrow operator in an expression, is it true
that only the "initial funny character" is omitted?
When the arrow operator is removed when it would be "between brackets
or braces, or between a closing bracket or brace and a parenthesis for
an indirect function call", is the meaning of the expression changed
in any way?
Anyone know what is meant by "ordinary arrays"?
I'll admit to be so baffled by the final "listref" expressions in this
section that I can't think of a good question.
enough to confuse myself quite nicely.
One sentence reads, "If the next thing after the arrow is a bracket or a
brace, the left operand is treated as a reference to an array or hash,
respectively ..."
I just don't see how this code, and its explanation, square with that quote:
print $array[3]->{"English"}->[0];
" ... the fourth element of @array is intended to be a hash reference ..."
Isn't it the fourth element of the array referenced by (the poorly named)
$array ?
When there is more than one arrow operator in an expression, is it true
that only the "initial funny character" is omitted?
When the arrow operator is removed when it would be "between brackets
or braces, or between a closing bracket or brace and a parenthesis for
an indirect function call", is the meaning of the expression changed
in any way?
Anyone know what is meant by "ordinary arrays"?
I'll admit to be so baffled by the final "listref" expressions in this
section that I can't think of a good question.