HTTP::...ormats(3pm)
π NAME π
ok so this is HTTP::OAI::ListMetadataFormats β she's your lil bestie for getting at an OAI ListMetadataFormats response. that's it, that's the whole job, and she eats every time β¨
it's a Perl module, filed under User Contributed Perl Documentation as HTTP::OAI::ListMetadataFormats(3pm). π
πΈ SYNOPSIS πΈ
my $r = $h->ListMetadataFormats;
# ListMetadataFormats doesn't use flow control
while( my $rec = $r->next ) {
print $rec->metadataPrefix, "\n";
}
die $r->message if $r->is_error;
ok bestie notice the comment: ListMetadataFormats doesn't use flow control, so don't go looking for it, she simply doesn't do that π
β¨ METHODS β¨
$lmdf = new HTTP::OAI::ListMetadataFormatsβ the constructor, periodt. hand her over and she gives you back a brand newHTTP::OAI::ListMetadataFormatsobject. π¦$mdf = $lmdf->nextβ she hands you back either anHTTP::OAI::MetadataFormatobject, orundefif there's literally no more records left to give. thatundefis your cue to stop, no cap. π@mdfl = $lmdf->metadataFormat([$mdf])β gives you back the metadataFormat list, and if you want, you can pass in a new metadataFormat$mdfand she'll add it for you. returns an array ref ofHTTP::OAI::MetadataFormats. π$dom = $lmdf->toDOMβ returns anXML::DOMobject that represents the ListMetadataFormats response. DOM as in document object model, iykyk π
lowkey important:nextgiving youundefis not a bug, it's the signal. it's giving "we're done here." π«Ά
and that's the whole page, babe β written by the lovely people behind perl v5.36.0, dated 2023-09-28, and lovingly relayed to you by the HTTP::...ormats(3pm) manual. go forth and list those metadata formats ππΈπ
π¦ where this page comes from
- debian trixie: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu noble: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu resolute: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu stonking: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms