The following module was proposed for inclusion in the Module List:
modid: Getargs::Mixed
DSLIP: adpfp
description: Mixed positional/named parameter processor
userid: HANENKAMP (Andrew Sterling Hanenkamp)
chapterid: 12 (Opt_Arg_Param_Proc)
communities:
similar:
Getargs::Long Getopt::GetArgs
rationale:
Very similar to the modules Getargs::Long and Getopt::GetArgs, but
provides a very simple interface, provides no "type-checking", and
allows for positonal and named parameters to be mixed. It is
somewhat inspired by the way in which CGI takes parameters, but can
mix parameter types. So, a function using Getargs::Mixed can do:
foo($x, $y, $z); # or foo($x, -z => $z, -y => $y); # or foo(-z =>
$z, -x => $x, -y => $y);
This style is slightly borrowed from Perl 6 parameter passing
ideas, but is, of course, much weaker.
The namespace made sense since Getargs::Long is already using the
Getargs root NS and does something very similar. Getopt::GetArgs
seems like a misnomer, so emulating its naming seemed a poor choice.
enteredby: HANENKAMP (Andrew Sterling Hanenkamp)
enteredon: Wed Sep 3 19:37:29 2003 GMT
The resulting entry would be:
Getargs::
::Mixed adpfp Mixed positional/named parameter processor HANENKAMP
Thanks for registering,
--
The PAUSE
PS: The following links are only valid for module list maintainers:
Registration form with editing capabilities:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=36400000_468efc00acd81fd4&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=36400000_468efc00acd81fd4&SUBMIT_pause99_add_mod_insertit=1