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, using Time::HiRes when it's available. High-res if the module is in the building, lowkey. ⏰
  • time_is_hires β€” boop out true if the time from get_time is high resolution (i.e. if Time::HiRes is available). It's the resolution vibe check. πŸ¦‹
  • get_times β€” pass back an array reference of the four-element list of CPU seconds, just like times in perlfunc. 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