|XP is just a number|
Re^5: calling sub with object as paramby afoken (Canon)
|on Sep 03, 2015 at 19:27 UTC||Need Help??|
should be this:
And to make that really good, get rid of the useless and misleading empty prototype:
To explain that: Method calls bypass prototype checks, so the prototype is useless. And the method expects one parameter (in addition to the implicit object parameter), so using the empty prototype suggesting that the method takes no parameters is misleading and may confuse you (or someone else) later.
General rule of thumb for prototypes in Perl: Don't use them unless you really know what you are doing.
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)