Perl provides an API via CORE::prototype, that allows you to get a prototype. This is further documented by Sub::Util which is the documented method for working with subs,
Returns the prototype of the given
$codereference, if it has one, as a string. This is the same as theCORE::prototypeoperator; it is included here simply for symmetry and completeness with the other functions.
However, I don't see anything anywhere on how to get the signatures in runtime? Does perl make this available?