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 $hashref is 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