summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/URI/urn/oid.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl/lib/URI/urn/oid.pm')
-rw-r--r--Master/tlpkg/tlperl/lib/URI/urn/oid.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl/lib/URI/urn/oid.pm b/Master/tlpkg/tlperl/lib/URI/urn/oid.pm
new file mode 100644
index 00000000000..301b2bcd834
--- /dev/null
+++ b/Master/tlpkg/tlperl/lib/URI/urn/oid.pm
@@ -0,0 +1,18 @@
+package URI::urn::oid; # RFC 2061
+
+require URI::urn;
+@ISA=qw(URI::urn);
+
+use strict;
+
+sub oid {
+ my $self = shift;
+ my $old = $self->nss;
+ if (@_) {
+ $self->nss(join(".", @_));
+ }
+ return split(/\./, $old) if wantarray;
+ return $old;
+}
+
+1;