Imagine this:
&{$hashref->{'key'}}('key');
vs.
$hashref->{'key'}->('key');
Don't you think the second could lead to confusions?
I'm just trying to find what is best, I honestly prefer the first but I've never seen it until recently, so I am thinking maybe no one uses it because it may be harder to understand at first sight.
In reply to Re^2: How to call a sub-routine ref
by greengaroo
in thread How to call a sub-routine ref
by greengaroo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |