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
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms