Name : perl-Class-ParamParser
| |
Version : 1.041
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.8.1
| Date : 2023-07-20 18:49:34
|
Group : Development/Libraries/Perl
| Source RPM : perl-Class-ParamParser-1.041-lp155.8.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Provides complex parameter list parsing
|
Description :
This Perl 5 object class implements two methods which inherited classes can use to tidy up parameter lists for their own methods and functions. The two methods differ in that one returns a HASH ref containing named parameters and the other returns an ARRAY ref containing positional parameters.
Both methods can process the same kind of input parameter formats:
Those examples included single or multiple positional parameters, single or multiple named parameters, and a HASH ref containing named parameters (with optional \"remaining\" values afterwards). That list of input variations is not exhaustive. Named parameters can either be prefixed with \"-\" or left natural.
We assume that the parameters are named when either they come as a HASH ref or the first parameter begins with a \"-\". We assume that they are positional if there is an odd number of them. Otherwise we are in doubt and rely on an optional argument to the tidying method that tells us which to guess by default.
We assume that any \"value\" may be an array ref (aka \"multiple\" values under the same name) and hence we don\'t do anything special with them, passing them as is. The only exception to this is with \"remaining\" values; if there is more than one of them and the first isn\'t an array ref, then they are all put in an array ref.
If the source and destination are both positional, then they are identical.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/15.5/noarch |