TAP::Base(3pm)
π NAME π
okay so this is TAP::Base(3pm) β straight from the Perl Programmers Reference Guide β and it's the base class that provides common functionality to TAP::Parser and TAP::Harness. That's the whole name drop, bestie: shared base-class energy for those two, no cap. π
πΈ VERSION πΈ
Version 3.50 β iconic, current, periodt.
β¨ SYNOPSIS β¨
here's the whole setup, fr fr:
package TAP::Whatever;
use base 'TAP::Base';
# ... later ...
my $thing = TAP::Whatever->new();
$thing->callback( event => sub {
# do something interesting
} );
π¦ DESCRIPTION π¦
TAP::Base provides callback management. That's literally the description β callback management, and that's the whole vibe. It's giving "I handle callbacks so you can do something interesting" energy, iykyk. π
π METHODS π
π Class Methods π
callbackβ install a callback for a named event. Named event? Callback installed? Slay. β¨get_timeβ hand you the current time, usingTime::HiReswhen it's available. High-res if the module is in the building, lowkey. β°time_is_hiresβ boop out true if the time fromget_timeis high resolution (i.e. ifTime::HiResis available). It's the resolution vibe check. π¦get_timesβ pass back an array reference of the four-element list of CPU seconds, just liketimesinperlfunc. Fr fr, CPU seconds, four elements, array ref. π₯
made with π by perl v5.42.3 Β· 2026-11-03 Β· page TAP::Base(3pm) π«Άβ¨
π¦ 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