perl module to validate function/method parameters
