init III
This commit is contained in:
21
Perl OTRS/Kernel/cpan-lib/URI/urn/oid.pm
Normal file
21
Perl OTRS/Kernel/cpan-lib/URI/urn/oid.pm
Normal file
@@ -0,0 +1,21 @@
|
||||
package URI::urn::oid; # RFC 2061
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our $VERSION = '1.71';
|
||||
$VERSION = eval $VERSION;
|
||||
|
||||
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;
|
||||
Reference in New Issue
Block a user