in reply to Re: How to call a sub-routine ref
in thread How to call a sub-routine ref
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.
There are no stupid questions, but there are a lot of inquisitive idiots.
-- greengaroo
In Section
Seekers of Perl Wisdom