/export/home/cpanrun/depot/main/contrib-patched/perl/CPAN/src/Data-Tabular/blib/lib/Data/Tabular/Group.pm


NAME

Data::Tabular::Group


SYNOPSIS

This object is used by Data::Tabular to create `extra' columns on a table.

The subroutines in the `extra' section run under this package.

 ...
 extra => {
  'bob' => sub {
    my $self = shift;   # this is an Data::Tabular::Extra object
   }
 }
 ...


DESCRIPTION

This object is used to supply tools to the Data::Tabular designer. It also helps to protect the data from that designer.


METHODS

get

Method to access the data for a column. Given a list of column names this method returns a list of column data.

sum

Method to sum a set of columns. Given a list of column names this method returns the sum of those columns. The type of the data returned is the type of the first column.