Skip to content

Commit 6851a81

Browse files
committed
carp() when nodes() is used.
1 parent 08756c6 commit 6851a81

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/Net/RDAP/JCard.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package Net::RDAP::JCard;
2+
use Carp;
23
use Net::RDAP::JCard::Property;
34
use Net::RDAP::JCard::Address;
45
use strict;
@@ -59,14 +60,16 @@ case-insensitively).
5960

6061
sub properties {
6162
my ($self, $type) = @_;
62-
6363
return grep { !$type || uc($type) eq uc($_->type) } @{$self->{properties}};
6464
}
6565

6666
#
6767
# DEPRECATED
6868
#
69-
sub nodes { shift->properties(@_) }
69+
sub nodes {
70+
carp("Warning: Net::RDAP::JCard::nodes() has been deprecated and will be removed in a future release.");
71+
return shift->properties(@_);
72+
}
7073

7174
=pod
7275

0 commit comments

Comments
 (0)