If you want something similar to C's function prototypes (parameter type/number checking, plus support for optional and/or named parameters), take a look at Devel::Declare for the general case or MooseX::Declare if you're doing Moose-based OO.
In reply to Re: What's the better Perl style? Define parameters or not?
by dsheroh
in thread What's the better Perl style? Define parameters or not?
by pureHeart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |