I prefer:
For scalars:
$$scalar
For hashes:
$hashref->{$key}
For arrays:
$arrayref->[$index]
IMHO i.e
$hashref->{key}{next}{next}{$_}
is much better to reaad than:
${$hashref}{key}{next}{next}{$_}
In reply to Re: Learning to *really* love references
by ash
in thread Learning to *really* love references
by astaines
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |