Catman...s_code(3pm)
π Catmandu::Fix::uri_status_code β bestie edition π
okay so this is Catmandu::Fix::uri_status_code(3pm) from the User Contributed Perl Documentation, and it's lowkey one of the most useful little fixes ever. it does exactly one thing and it does it flawlessly: it checks the HTTP status of a uri. that's it. that's the whole vibe. β¨
πΈ NAME πΈ
Catmandu::Fix::uri_status_code β check the HTTP status of a uri π«Ά
like literally, you hand it a uri and it comes back with the status. main character behavior honestly. π
β¨ SYNOPSIS β¨
here's the whole thing in action, no cap:
copy_field(url,status)
uri_status_code(status) # status => '200'
so first you copy_field(url,status) to get the url into a field called status (iykyk, that's the input), and then uri_status_code(status) goes and checks it. and after it's done, that status field is holding something like '200'. slay. π
π¦ SEE ALSO π¦
- Catmandu::Fix β the whole fix family, the blueprint, the moment. go read it bestie.
and that's the page!! it's from perl v5.36.0, dated 2023-02-09, and that's the whole entire thing. thanks for coming to my ted talk, mwah πππ
π¦ 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