TAP::Pa...Comment(3pm)

πŸ’¬ NAME πŸ’¬

TAP::Parser::Result::Comment β€” the Comment result token, bestie. Also hi, the manual name is TAP::Pa...Comment(3pm), from the Perl Programmers Reference Guide β€” say that three times fast, iykyk πŸ’…


🌸 VERSION 🌸

This one is Version 3.50 β€” iconic, no notes ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so TAP::Parser::Result::Comment is a subclass of TAP::Parser::Result. You get a token of this class when a comment line pops up. Example time, and yes it ate:

1..1
ok 1 - woo hooo!
# this is a comment

πŸ’– OVERRIDDEN METHODS πŸ’–

These are mainly listed here to hush the pitiful screams of the pod coverage tests β€” they literally keep me awake at night, no cap 😭

  • as_string β€” note that this method merely returns the comment preceded by a # . That's the whole entire thing, fr fr.

πŸŽ€ Instance Methods πŸŽ€

  • comment β€” the method you call when you want the comment itself. Like this:
if ( $result->is_comment ) {
    my $comment = $result->comment;
    print "I have something to say:  $comment";
}

This page is from perl v5.42.3, dated 2026-11-03 β€” bye bestie, go comment responsibly πŸ’œβœ¨πŸ«Ά

πŸ“¦ where this page comes from