Catman...::PLoS(3pm)
β¨ NAME β¨
okay bestie, gather round π this is Catman...::PLoS(3pm) and its whole entire personality is being Catmandu::Importer::PLoS β a package that imports PLoS data. that's it. that's the vibe. it's giving "i do one thing and i do it slay" π
πΈ SYNOPSIS πΈ
so here's how you actually use it, no cap. first you pull it in:
use Catmandu::Importer::PLoS;
then you set up your attributes β a query and an api_key, iconic duo fr fr:
my %attrs = (
query => 'github',
api_key => ''
);
then you make the importer, main character energy only β¨:
my $importer = Catmandu::Importer::PLoS->new(%attrs);
and then you actually go through every single record with each, which hands you a hashref one at a time and also returns a count, so like, it's useful AND it tells you how many you got π«Ά:
my $n = $importer->each(sub {
my $hashref = $_[0];
# ...
});
π heads up that$hashrefis literally$_[0], so the# ...is where you do your lil thing with it. don't skip it, bestie, that's the whole point.
π¦ SEE ALSO π¦
- Catmandu::Iterable β yeah, go look at it, it's the family π
okay that's the whole page, mwah π this lil gem lives under perl v5.36.0 and was last touched on 2023-02-04 β so it's giving vintage but make it cute, iykyk πβ¨π
π¦ where this page comes from
- debian bookworm: libcatmandu-plos-perl 0.01-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-plos-perl 0.01-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-plos-perl 0.01-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-plos-perl 0.01-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-plos-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