in reply to Re^6: Monkey patching all subs with a basic 'starting subname' message
in thread Monkey patching all subs with a basic 'starting subname' message

I just now noticed Sub::Metadata, which allows you to retrieve (and manipulate) the prototype (but not the signature) of a subroutine. Maybe that one could help you here.

The module claims to work even with Perl 5.6, so most Perl versions should be supported.

  • Comment on Re^7: Monkey patching all subs with a basic 'starting subname' message