Catman...web_uri(3pm)

✨ NAME ✨

okay so you found the page for Catman...web_uri(3pm) β€” well, specifically it's Catmandu::Fix::Condition::is_archived_web_uri, and bestie, it does exactly one iconic thing: it checks whether a field is holding an HTTP or HTTPS URI that's actually archived in a web archive. that's the whole job. that's the moment. πŸ’…


🌸 SYNOPSIS 🌸

here's the vibe. you drop this condition into your fix, and you get a yes/no about whether an archived copy exists πŸ‘‘

Check if an archived version is available for ANY year β€” you pass an empty string '' as the year and it's like "idk bestie, any year will do":

# Check if an archived version is available for any year...
if is_archived_web_uri(uri_field,'')
  ...
else
  ...
end

Check if an archived version is available for a SPECIFIC year β€” you pass the year (like 2013) and it gets picky about it:

# Check if an archived version is available for a year...
if is_archived_web_uri(uri_field,2013)
  ...
else
  ...
end

so yeah, same condition, same uri_field, and the second argument is the year β€” empty string for "whatever", a number for "this exact year or nothing" πŸ¦‹


🫢 SEE ALSO 🫢

  • Catmandu::Fix β€” go read that one too, it's the parent vibe, iykyk πŸ’–

and that's the whole page, no cap! πŸŽ€ this lil beauty lives in the Catman...web_uri(3pm) manual page, which is part of perl v5.36.0 and was dated 2023-02-09 β€” shoutout to the User Contributed Perl Documentation for keeping it real. mwah, go archive some URIs bestie πŸ’œβœ¨

πŸ“¦ where this page comes from