Catman...PubMed(3pm)
π Catman...PubMed(3pm) π
okay bestie, welcome to Catmandu::Importer::PubMed, which lives in the User Contributed Perl Documentation section of your man pages. yes, the name is doing a little bit with the dots. it's giving "the terminal truncated my filename and honestly? valid." anyway. π¦
β¨ NAME β¨
Catmandu::Importer::PubMed β it's the package that imports PubMed data. that's it, that's the whole job. no cap. π§¬
πΈ SYNOPSIS πΈ
here's how you actually use it, and yes you're gonna copy this verbatim because it slays:
use Catmandu::Importer::PubMed;
my %attrs = (
term => 'github'
);
my $importer = Catmandu::Importer::PubMed->new(%attrs);
my $n = $importer->each(sub {
my $hashref = $_[0];
# ...
});
so real talk: you use the module, you build yourself a %attrs hash where the term key is set to 'github' in this lil example (yes, 'github' is literally the search term here, iconic choice tbh), you hand that hash to ->new(%attrs) to spin up your $importer, and then you call $importer->each(...) with a callback. each item that comes out lands in $hashref as $_[0], and the whole thing returns $n β which is just sitting there waiting for you to do something with it. the # ... is where you live, bestie. main character energy. π
π SEE ALSO π
- Catmandu::Iterable β go look at this one too, fr fr, it's the whole vibe family your importer belongs to. π«Ά
that's the whole page, no filler, no fluff, we ate and left no crumbs. π
ngl there are no options, no environment variables, no exit statuses, no bug notes and no license lines on this one β it's a tiny page and we're not inventing stuff that isn't there. periodt. π
this gorgeous little page ships with perl v5.36.0, dated 2023-02-04, and it answers to the name Catman...PubMed(3pm) forever and always π
π¦ where this page comes from
- debian bookworm: libcatmandu-pubmed-perl 0.01-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-pubmed-perl 0.01-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-pubmed-perl 0.01-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-pubmed-perl 0.01-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-pubmed-perl 0.01-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms