summaryrefslogtreecommitdiff
path: root/lib/URI/urn/oid.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/URI/urn/oid.pm')
-rw-r--r--lib/URI/urn/oid.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/URI/urn/oid.pm b/lib/URI/urn/oid.pm
new file mode 100644
index 0000000..ceb8322
--- /dev/null
+++ b/lib/URI/urn/oid.pm
@@ -0,0 +1,20 @@
+package URI::urn::oid; # RFC 2061
+
+use strict;
+use warnings;
+
+our $VERSION = "1.69";
+
+use parent 'URI::urn';
+
+sub oid {
+ my $self = shift;
+ my $old = $self->nss;
+ if (@_) {
+ $self->nss(join(".", @_));
+ }
+ return split(/\./, $old) if wantarray;
+ return $old;
+}
+
+1;