Net::RDAP::JCard(3)
π NAME π
Net::RDAP::JCard β bestie, it's a module that represents an RDAP jCard object. That's the whole vibe. β¨
π¦ SYNOPSIS π¦
#
# get an object by calling the jcard() method on a Net::RDAP::Object::Entity
#
my $jcard = $entity->jcard;
my $fn = [ $jcard->properties('fn') ]->[0];
say $fn->value;
okay so like, you grab a jCard off an entity, you pull the fn property out of it, and you print its value. slay. π
πΈ DESCRIPTION πΈ
This module gives you a whole representation of jCard properties, exactly as described in RFC 7095 β you can peep it over at <https://www.rfc-editor.org/rfc/rfc7095.html>. it's giving "specs but make it structured". π
π CONSTRUCTOR π
$jcard = Net::RDAP::JCard->new($ref);
ngl you probably do not need to instantiate these objects yourself, king β the module handles that. but if you do, all you gotta pass is an arrayref of properties, and heads up: those properties are themselves arrayrefs. arrayrefs in arrayrefs, it's giving inception fr fr. π
β¨ METHODS β¨
- ```perl @properties = $jcard->properties;
Hands you back a (potentially empty) array of `Net::RDAP::JCard::Property` objects. No filter, no drama, just all of them. π
- ```perl
@properties = $jcard->properties($type);
Same deal, but now it's filtered down to just the ones with the $type type. and yes, the matching is case-insensitive, so don't stress about your caps lock. π₯
- ```perl $property = $jcard->first('fn');
Returns the very first property matching the type you asked for. and if there's, like, *nothing*? You get `undef`. it's giving "no thoughts, empty array". π
- ```perl
@addresses = $jcard->addresses;
Returns a (potentially empty) array of Net::RDAP::JCard::Address objects β these are the ones representing the adr properties of the jCard object. addresses but make it objects. π
- ```perl $address = $jcard->first_address;
Returns a `Net::RDAP::JCard::Address` object for the *first* address it finds. and if there isn't one? `undef`, bestie. that's it, that's the method. π«Ά
---
# π COPYRIGHT π
Copyright 2018-2023 CentralNic Ltd, 2024-2026 Gavin Brown. For licensing info, please see the `LICENSE` file in the Net::RDAP distribution. read the license, it's the responsible main character move. β
---
<pink>and that's the whole page, bestie!! π</pink> this was `Net::RDAP::JCard(3)` from the User Contributed Perl Documentation, running on <purple>perl v5.42.2</purple>, dated <cyan>2026-06-17</cyan>. mwah, go write some beautiful jCard code. π§πΈπ¦π
π¦ where this page comes from
- fedora 44: perl-Net-RDAP 0.43-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms