You are viewing the version of this documentation from Perl 5.14.4. View the latest version

CONTENTS

NAME

TAP::Object - Base class that provides common functionality to all TAP::* modules

VERSION

Version 3.23

SYNOPSIS

package TAP::Whatever;

use strict;
use vars qw(@ISA);

use TAP::Object;

@ISA = qw(TAP::Object);

# new() implementation by TAP::Object
sub _initialize {
    my ( $self, @args) = @_;
    # initialize your object
    return $self;
}

# ... later ...
my $obj = TAP::Whatever->new(@args);

DESCRIPTION

TAP::Object provides a default constructor and exception model for all TAP::* classes. Exceptions are raised using Carp.

METHODS

Class Methods

new

Create a new object. Any arguments passed to new will be passed on to the