diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/URI/urn/oid.pm')
-rwxr-xr-x | Master/tlpkg/tlperl/lib/URI/urn/oid.pm | 18 |
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 100755 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; |