Data::Tabular::Group::Interface - Object that is passed into group_by methods
group_by => { groups => [ { pre => sub { my $self = shift; # This is a Data::Tabular::Group::Interface object }, } ], },
Data::Tabular::Group::Interface is only used by the group_by function of the Data::Tabular package.
Data::Tabular::Group::Interface
Data::Tabular
There are several 2 major groups of methods in this object: access methods and output methods. Access methods let the users groups methods access information about the current table and the output methods that return the rows that are being inserted into the table.
The user should never need to call the constructor.
This method returns the value of the column given by column name. This column should be a grouped column or the value will unpredictable (one of the values from the group).
This give the number of input rows in the current group.
The header method returns a header row that will span the complete table.
The text that is printed in the header. Often get() and count() are used to build this string.
The titles method returns a row of titles. Normally all tables will use this method at least once.
This method return a row with the columns listed in the sum array summed.
This is similar to the totals method, but each value is divided by the number of input rows before being output.
"G. Allen Morris III" <gam3@gam3.net>
To install Data::Tabular, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Tabular
CPAN shell
perl -MCPAN -e shell install Data::Tabular
For more information on module installation, please visit the detailed CPAN module installation guide.