Catman...e_orcid(3pm)

✨ NAME ✨

okay bestie, gather round, because this one's a lil cutie from the User Contributed Perl Documentation, section 3pm πŸŽ€ β€” it's Catmandu::Fix::Condition::is_live_orcid, and its whole entire job is: test if the ORCID can be resolved. that's it. that's the vibe. πŸ’…


🌸 SYNOPSIS 🌸

she's a condition, so you drop her into a Fix like this, no cap:

if is_live_orcid(orcid)
  ...
else
  ...
end

so like, if the ORCID resolves β€” yay, do the first thing 🫢 β€” and if it doesn't, the else branch catches you. iconic behaviour honestly.


πŸ¦‹ SEE ALSO πŸ¦‹

  • Catmandu::Fix β€” the mothership, the main character, the one you should go read next πŸ’–

and that's the whole page, bestie!! short, sweet, does exactly one thing and does it well, we love a specialist πŸ‘‘

this lil guide was brought to you by perl v5.36.0, dated 2023-02-09 β€” mwah, kisses, bye!! πŸ’‹βœ¨

πŸ“¦ where this page comes from