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
- debian bookworm: libcatmandu-identifier-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-identifier-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-identifier-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-identifier-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-identifier-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms