- Constructor and Initialization
- See Also
- Machine-Readable Change Log
- Version Numbers
X500::DN::Marpa::RDN - Backcompat module to emulate the RDN part of
X500::DN::Marpa::RDN provides a Marpa::R2-based parser for parsing X.500 Relative Distinguished Names.
This module emulates the RDN parts of X500::DN.
Actually, objects of type
X500::DN::Marpa::RDN are returned by "getRDN($n)" in X500::DN::Marpa::DN, so you may not need to use this module directly at all.
But if you do create such an object directly, you must call
$rdn -> parse($an_rdn) before calling any other methods.
This module is available as a Unix-style distro (*.tgz).
See http://savage.net.au/Perl-modules/html/installing-a-module.html for help on unpacking and installing distros.
X500::DN::Marpa as you would any
sudo cpan X500::DN::Marpa
or unpack the distro, and then either:
perl Build.PL ./Build ./Build test sudo ./Build install
perl Makefile.PL make (or dmake or nmake) make test make install
new() is called as
my($parser) = X500::DN::Marpa::RDN -> new(k1 => v1, k2 => v2, ...).
It returns a new object of type
Key-value pairs accepted in the parameter list (see corresponding methods for details:
This module is a subclass of X500::DN::Marpa and shares all its options to new(), and all its methods. See "Constructor and Initialization" in X500::DN::Marpa and "Methods" in X500::DN::Marpa.
Further, it has these methods:
In scalar context, returns the number of types in the RDN passed in to "parse([$string])" in X500::DN::Marpa.
In list context, returns all those types.
In scalar context, returns the number of values in the RDN passed in to "parse([$string])" in X500::DN::Marpa, whose type matches $key.
In list context, returns all those values.
The file Changes was converted into Changelog.ini by Module::Metadata::Changes.
Version numbers < 1.00 represent development versions. From 1.00 up, they are production versions.
Email the author, or log a bug on RT:
X500::DN::Marpa was written by Ron Savage <firstname.lastname@example.org> in 2015.
Marpa's homepage: http://savage.net.au/Marpa.html.
My homepage: http://savage.net.au/.
Australian copyright (c) 2015, Ron Savage.
All Programs of mine are 'OSI Certified Open Source Software'; you can redistribute them and/or modify them under the terms of The Artistic License 2.0, a copy of which is available at: http://opensource.org/licenses/alphabetical.