Sub::NamedParams - Perl extension for using named arguments with any sub

Sometimes it can be a pain to work with a sub that takes a long list of arguments. Trying to remember their order can be annoying, but it gets worse if some of the arguments are optional. This module allows you to use named arguments with any subrout...

OVID/Sub-NamedParams-1.02 - 07 Oct 2005 04:26:44 GMT - Search in distribution

Params::Smart - use both positional and named arguments in a subroutine

This module provides "smart" parameter handling for subroutines without having to use a changed syntax or source filters. Features include: * Mixed use of named and positional parameters. * Type checking and coercion through callbacks. * Dyanmic para...

RRWO/Params-Smart-0.08 - 21 Mar 2007 21:12:34 GMT - Search in distribution

Attribute::Default - Perl extension to assign default values to subroutine arguments

You've probably seen it a thousand times: a subroutine begins with a complex series of "defined($blah) or $blah = 'fribble'" statements designed to provide reasonable default values for optional parameters. They work fine, but every once in a while o...

STEPHEN/Attribute-Default-1.35 - 24 Aug 2013 07:34:26 GMT - Search in distribution

3 results (0.086 seconds)