Catman...eb_uri(3pm)

πŸ’– Catmandu::Fix::Condition::is_web_uri β€” it's giving... a manpage? πŸŽ€

okay bestie, so this one is from Catmandu::Fix::Condition::is_web_uri, a lil Perl module living over in the User Contributed Perl Documentation section (section 3pm, iykyk). It's a condition, which means it doesn't do stuff, it judges stuff. Politely. ✨


✨ NAME ✨

Catmandu::Fix::Condition::is_web_uri β€” check of a field contains an HTTP or HTTPS URI

no cap, that's literally the whole job: does this field hold an HTTP or HTTPS URI or does it not πŸ’…


🌸 SYNOPSIS 🌸

Here's the vibe, copy it exactly bestie:

if is_web_uri(uri_field)
  ...
else
  ...
end

So you drop it in your if, point it at a field, and the if branch goes off when that field is an HTTP or HTTPS URI. The else branch is right there for when it isn't. Main character behaviour honestly. πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

  • Catmandu::Fix β€” the whole parent universe this condition lives in, go say hi 🫢

and that's the whole page, fr fr πŸ’– This one came to you courtesy of perl v5.36.0, dated 2023-02-09 β€” thank you for coming to my ted talk, mwah πŸŽ€πŸ’œ

πŸ“¦ where this page comes from