Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
odc
8mo ago
0 comments
Save
Share
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.
0 comments
1 comments · 1 top-level
top
newest
oldest
zaucker
8mo ago
$a->[2]->{"bar"} is the same as $a->[2]{"bar"} or as $a->[2]{bar}
j
/
k
navigate · click thread line to collapse