I've read about checking that the number of arguments passed by a subroutine is correct, prototyping and how it shouldn't be necessary. Generally speaking I do check args passed within the code and so that seems right.
However, I regularly change the number of values returned by subroutines and I often seem to make mistakes with this - by overlooking an instance of the calling subroutine or overlooking a return statement. So I would like to find a way or a tool for checking all subroutines across all my PERL files to make sure that the number of values expected matches every instance of the return statement within each routine.
Any ideas? Thanks for any advice.