http://qs321.pair.com?node_id=656943

zrajm has asked for the wisdom of the Perl Monks concerning the following question:

I just started writing things using the object oriented perl interface, however I sincerely miss prototypes! Is there a way to add prototypes to my object methods, so that I get an appropriate warning if someone use the method with wrong number or types of arguments?

perlobj refers to "Function Templates" in perlref, which speaks a bit about creating local subroutines. Is there something along this way that one would want to use, in order to get object method prototypes?

/zrajm

P.S. I got quite suprised when I realised that my prototypes where being ignored when calling a method. How come this is so?