in reply to Object method prototypes?

To do this sort of argument checking in Perl, you use a module like Params-Validate.