1 |
$coderef = \&subroutine; # pointer to a subroutine!
|
2 |
$globref = \*STDOUT;
|
3 | 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 |
4 | Thus $$scalarref is equivalent to ${$scalarref}; |
5 | $$hashref{"key"} is equivalent to ${$hashref}{"key"} or $hashref->{"key"} |