Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
odc
3 months ago
|
parent
|
context
|
favorite
| on:
DuckDuckGo Donates $25,000 to The Perl and Raku Fo...
In Perl -> is the dereference operator, similar to C.
So when you see
$a->[2]{"bar"}
then $a is an array reference where each item is a hashmap. But with
$a->[2]->{"bar"}
then $a is an array reference where each item is a reference to a hashmap.
zaucker
3 months ago
[–]
$a->[2]->{"bar"} is the same as $a->[2]{"bar"} or as $a->[2]{bar}
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
So when you see
then $a is an array reference where each item is a hashmap. But with then $a is an array reference where each item is a reference to a hashmap.