$coderef = \&subroutine; # pointer to a subroutine!
|
$globref = \*STDOUT;
|
Note in dereferencing, one can use curly braces {} either to disambiguate or to change scalar holding hard reference to a BLOCK returning a reference of correct type |
Thus $$scalarref is equivalent to ${$scalarref}; |
$$hashref{"key"} is equivalent to ${$hashref}{"key"} or $hashref->{"key"} |