[sf-perl] Prototypes, List::MoreUtils and subroutine references, OH MY!
Jeffrey Ryan Thalhammer
jeff at imaginative-software.com
Fri Mar 29 09:42:18 PDT 2013
On Mar 29, 2013, at 9:21 AM, Chris Weyl wrote:
> That's the way it is. Prototypes are only used when a sub is invoked as a function, not from a coderef or method; this make sense in their context of providing the capacity to emulate built in functions.
I think of prototypes as a compile-time thing.
Dereferencing a subroutine ref is a run-time event.
Perl knows nothing about prototypes at that point.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SanFrancisco-pm