I know that Perl has perldoc for documentation purposes similar to Javadoc etc.
But I was wondering how would one document in Perl a specific method i.e. the exact contract of the input arguments and the output argument?
E.g. that the input should be e.g. an array instead of a scalar etc without actually reading the whole code?
Is it even possible?