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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to call a sub-routine ref
by roboticus (Chancellor) on Oct 19, 2012 at 20:30 UTC | |
by BillKSmith (Monsignor) on Oct 20, 2012 at 04:00 UTC | |
|
Re^3: How to call a sub-routine ref
by BrowserUk (Patriarch) on Oct 19, 2012 at 20:52 UTC | |
|
Re^3: How to call a sub-routine ref
by ikegami (Patriarch) on Oct 19, 2012 at 21:52 UTC |