Catman...id_isbn(3pm)

πŸ’– Catman...id_isbn(3pm) πŸ’–

User Contributed Perl Documentation β€” yes bestie, that's the manual name, we're in the Perl docs section and it's giving very much "small page, big energy" ✨


🌸 NAME 🌸

Catmandu::Fix::Condition::is_valid_isbn β€” it's a condition, and what it conditions on is whether your ISBN numbers are actually valid πŸŽ€

Like, that's the whole job. It checks the vibe of an ISBN and tells you if it's a real one or not. Slay. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

Okay so here's how you actually use it, in all its if / else / end glory:

if is_valid_isbn(isbn_field)
  ...
else
  ...
end

So you pop isbn_field in there, and the fix branches one way if the ISBN is valid and the other way if it isn't. Two paths, one condition, no cap. πŸ’…


🌈 SEE ALSO 🌈

  • Catmandu::Fix β€” the whole parent ecosystem, go say hi 🫢

Version check, bestie: this one's running on perl v5.36.0 and it's dated 2023-02-09. That's the footer tea, and that's the whole page. Obsessed, honestly. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from