TAP::Object - Base class that provides common functionality to all TAP::*
modules
Version 3.50
package TAP::Whatever;
use strict;
use base 'TAP::Object';
# new() implementation by TAP::Object
sub _initialize {
my ( $self, @args) = @_;
# initialize your object
return $self;
}
# ... later ...
my $obj = TAP::Whatever->new(@args);
TAP::Object
provides a default constructor and exception model for all TAP::*
classes. Exceptions are raised using Carp.
new
Create a new object. Any arguments passed to new
will be passed on to the "_initialize" method. Returns a new object.