TAP::PARSER::RESULT::PRAGMA(3perl)
π NAME π
TAP::Parser::Result::Pragma β bestie, it's the TAP pragma token. That's the whole name. Short, sweet, iconic, periodt. π
(If you're hunting for it in the man pages, it lives at TAP::Parser::Result::Pragma(3perl) β the Perl Programmers Reference Guide corner of the library, section 3perl, iykyk.) π¦
β¨ VERSION β¨
Okay so this is Version 3.52. Write it down, it matters. π
πΈ DESCRIPTION πΈ
So basically this is a subclass of TAP::Parser::Result. If the parser runs into a pragma, it hands you back a token that is this class. Not a vibe, not a hunch β literally this class. π
Check it:
TAP version 13
pragma +strict, -foo
See that? +strict gets switched on, -foo gets switched off. The + and - are doing the heavy lifting there. πͺ
β οΈ Heads up, bestie: pragmas are only supported from TAP version 13 onwards. Older TAP versions? No pragmas. Don't come for me, that's just how it is. π
π«Ά OVERRIDDEN METHODS π«Ά
Not gonna lie, these are mainly listed here to shut up the pitiful screams of the pod coverage tests. They keep the author awake at night. Truly unhinged behavior from a test suite. π
as_stringβ overridden. Class method doing its thing.rawβ also overridden.
π Instance Methods π
π pragmas
Grab the pragmas off a result that's actually a pragma:
if ( $result->is_pragma ) {
@pragmas = $result->pragmas; }
Notice the is_pragma guard first β you check the vibe before you pull the list. Main character energy, honestly. β¨
π Sign-off, bestie π
That's the whole page, and it's perl v5.44.0, dated 2026-10-17. Slay, go parse something. ππ¦π
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND 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