http://www.perlmonks.org?node_id=469189


in reply to Predefining sub Parameters

Others have given you good answers, but I haven't seen anyone mention these modules yet. Sub::Signatures and Perl6::Subs allow you to define your subs in the way that you want by using source filters. I haven't used them yet, but I thought i'd mention them.