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